Skip to content

Commit

Permalink
[BUGFIX] Do not process Flexform if no options are found
Browse files Browse the repository at this point in the history
  • Loading branch information
ervaude committed Nov 26, 2024
1 parent b4762f8 commit a9d19a4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ public function modifyDataStructure(AfterFlexFormDataStructureParsedEvent $event
$options = $this->emailTemplateService->getOptions();
$dataStructure = $event->getDataStructure();

if ($options === []) {
return;
}

// Search for finishers and add items
foreach ($dataStructure['sheets'] as $sheetIdentifier => $sheet) {
foreach ($addToFinishers as $finisherIdentifier) {
Expand Down

0 comments on commit a9d19a4

Please sign in to comment.