Error while upgrading from 7.13.0 to 7.14.0

Hey
This is probably a better fix

       if ($this->scanForMultiPanel) {
            require_once('include/SugarFields/Parsers/MetaParser.php');
            $hasMultiplePanels=(new MetaParser())->hasMultiplePanels($panels);
            if ($setDefaultPanel || !$hasMultiplePanels) {
                $panels = array($this->defaultPanel=>$panels);
                $this->isMultiPanel = false;
            }
        }

There’s a similar code around line 696