Skip to content

Commit 1a60c5e

Browse files
authored
Update MultistepForm.php
1 parent 6205955 commit 1a60c5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MultistepForm/MultistepForm.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ protected function createComponentForm() : \Nette\Forms\Form
162162
$factory = $this->factories[$this->currentStep - 1];
163163

164164
if (\is_object($factory) && \method_exists($factory, 'create')) {
165-
$step = $factory->create();
165+
$step = $factory->create($this->getValues());
166166
} elseif (\is_callable($factory)) {
167167
$step = $factory($this->getValues());
168168
} else {
@@ -218,7 +218,7 @@ private function getSection() : \Nette\Http\SessionSection
218218
{
219219
$section = $this->session->getSection('multiStepForm-' . $this->subsessionId);
220220
$section->warnOnUndefined = true;
221-
$section->setExpiration('+ 20 minutes');
221+
$section->setExpiration('+ 14 days');
222222

223223
return $section;
224224
}

0 commit comments

Comments
 (0)