Skip to content

Commit 6205955

Browse files
authored
Fixed loading session identifier state
1 parent b0536b9 commit 6205955

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/MultistepForm/MultistepForm.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ public function getValues() : array
145145
public function saveState(array &$params): void
146146
{
147147
$params['step'] = $this->currentStep ?? 1;
148+
$params[self::FORM_IDENTIFIER] = $this->subsessionId;
148149
}
149150

150151
/**
@@ -153,6 +154,7 @@ public function saveState(array &$params): void
153154
public function loadState(array $params): void
154155
{
155156
$this->currentStep = (int) ($params['step'] ?? 1);
157+
$this->subsessionId = $params[self::FORM_IDENTIFIER] ?? $this->subsessionId;
156158
}
157159

158160
protected function createComponentForm() : \Nette\Forms\Form

0 commit comments

Comments
 (0)