Skip to content

Commit

Permalink
Merge pull request #136 from adrian-cerdeira/hotfix/further-pages-error
Browse files Browse the repository at this point in the history
BUGFIX: Allow `furtherPages` child node to be removed
  • Loading branch information
bwaidelich authored Jul 3, 2024
2 parents 8b4002c + a0d3cae commit 39582fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Classes/Fusion/FormElementWrappingImplementation.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ public function evaluate()
$output = $this->wrapNodeRecursively($finishersNode, '', $fusionPath . '/finishers') . $output;
}
if (!$renderable->getRootForm()->hasPageWithIndex(1)) {
$output = $output . $this->wrapNode($node->getNode('furtherPages'), '', $fusionPath . '/furtherPages');
$furtherPagesNode = $node->getNode('furtherPages');
if ($furtherPagesNode !== null) {
$output = $output . $this->wrapNode($furtherPagesNode, '', $fusionPath . '/furtherPages');
}
}
return $output;
}
Expand Down

0 comments on commit 39582fc

Please sign in to comment.