library/Theme/General.php
public function fixFieldgroupLocationPath($fieldgroup)
    {
        if (!isset($fieldgroup['location'])) {
            return $fieldgroup;
        }

        foreach ($fieldgroup['location'] as &$locations) {
            foreach ($locations as &$location) {
                if ($location['param'] !== 'page_template') {
                    return $fieldgroup;
                }

                $location['value'] = basename($location['value']);
            }
        }

        return $fieldgroup;
    }
public function fixFieldgroupLocationPath($fieldgroup)
    {
        if (!isset($fieldgroup['location'])) {
            return $fieldgroup;
        }

        foreach ($fieldgroup['location'] as &$locations) {
            foreach ($locations as &$location) {
                if ($location['param'] !== 'page_template') {
                    return $fieldgroup;
                }

                $location['value'] = basename($location['value']);
            }
        }

        return $fieldgroup;
    }
public function fixFieldgroupLocationPath ( $ fieldgroup ) { if ( ! isset ( $ fieldgroup [ 'location' ] ) ) { return $ fieldgroup ; } foreach ( $ fieldgroup [ 'location' ] as & $ locations ) { foreach ( $ locations as & $ location ) { if ( $ location [ 'param' ] !== 'page_template' ) { return $ fieldgroup ; } $ location [ 'value' ] = basename ( $ location [ 'value' ] ) ; } } return $ fieldgroup ; }
Fixes fieldgroups page-template path

@param array $fieldgroup Fieldgroup

@return array
Fixes fieldgroups page - template path