Skip to content

Commit

Permalink
Bugfix issue issues#60
Browse files Browse the repository at this point in the history
  • Loading branch information
KurtGusbeth committed Oct 17, 2024
1 parent 3ec77e1 commit 40fda93
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Classes/Updates/SwitchableControllerActionsPluginUpdater.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ public function performMigration(): bool
foreach ($records as $record) {
$flexFormData = GeneralUtility::xml2array($record['pi_flexform']);
$flexForm = $this->flexFormService->convertFlexFormContentToArray($record['pi_flexform']);
if (!is_array($flexForm)) {
$flexForm = [];
}
if (!isset($flexForm['switchableControllerActions'])) {
$flexForm['switchableControllerActions'] = '';
}
$targetListType = $this->getTargetListType(
$record['list_type'],
$flexForm['switchableControllerActions']
Expand Down

0 comments on commit 40fda93

Please sign in to comment.