Skip to content

Commit

Permalink
[BUGFIX] Skip SCA migration for empty FlexForm
Browse files Browse the repository at this point in the history
Refs #77
  • Loading branch information
derhansen committed Sep 20, 2023
1 parent 39bdffd commit d988a86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Classes/Updates/SwitchableControllerActionsPluginUpdater.php
Expand Up @@ -93,6 +93,10 @@ public function performMigration(): bool
foreach ($records as $record) {
$flexFormData = GeneralUtility::xml2array($record['pi_flexform']);
$flexForm = $this->flexFormService->convertFlexFormContentToArray($record['pi_flexform']);
if (empty($flexForm)) {
continue;
}

$targetListType = $this->getTargetListType(
$record['list_type'],
$flexForm['switchableControllerActions']
Expand Down

0 comments on commit d988a86

Please sign in to comment.