Skip to content

Commit

Permalink
[BUGFIX] Check for a flexform registration in UpgradeWizard
Browse files Browse the repository at this point in the history
Relates: #226
  • Loading branch information
extcode committed Oct 12, 2024
1 parent 0680558 commit 78acfc0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Classes/Updates/SwitchableControllerActionsPluginUpdater.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,11 @@ protected function getTargetListType(string $sourceListType, string $switchableC

protected function getAllowedSettingsFromFlexForm(string $listType): array
{
$flexFormFile = $GLOBALS['TCA']['tt_content']['columns']['pi_flexform']['config']['ds'][$listType . ',list'];

if (!$flexFormFile) {
if (isset($GLOBALS['TCA']['tt_content']['columns']['pi_flexform']['config']['ds'][$listType . ',list']) === false) {
return [];
}

$flexFormFile = $GLOBALS['TCA']['tt_content']['columns']['pi_flexform']['config']['ds'][$listType . ',list'];
$flexFormContent = file_get_contents(GeneralUtility::getFileAbsFileName(substr(trim($flexFormFile), 5)));
$flexFormData = GeneralUtility::xml2array($flexFormContent);

Expand Down

0 comments on commit 78acfc0

Please sign in to comment.