Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
romm committed May 19, 2017
1 parent 5209c3d commit a29b16c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Classes/ViewHelpers/FormViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,12 @@ protected function renderHiddenReferrerFields()

$result .= '<input type="hidden" name="' . $this->prefixFieldName('formzData') . '" value="' . $value . '" />' . LF;

$substepDefinition = $this->formObject->getCurrentSubstepDefinition();
if ($this->formObject->hasSteps()) {
$substepDefinition = $this->formObject->getCurrentSubstepDefinition();

if ($substepDefinition) {
$result .= '<input type="hidden" fz-substep-field="1" name="' . $this->prefixFieldName('currentSubstep') . '" value="' . $substepDefinition->getUniqueIdentifier() . '" />' . LF;
if ($substepDefinition) {
$result .= '<input type="hidden" fz-substep-field="1" name="' . $this->prefixFieldName('currentSubstep') . '" value="' . $substepDefinition->getUniqueIdentifier() . '" />' . LF;
}
}

return $result;
Expand Down

0 comments on commit a29b16c

Please sign in to comment.