Skip to content

Commit 17d5f99

Browse files
authored
Merge pull request #42 from Seok93/request-edit-method
parameterも一緒に渡すように修正
2 parents feca270 + 0cd6605 commit 17d5f99

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Controller/Component/MultiStepFormCoreComponent.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,14 @@ protected function displayFirst()
358358
protected function redirectFisrt()
359359
{
360360
$this->controller->Flash->error(__('It is over the post max size'));
361-
return $this->controller->redirect([$this->action]);
361+
$passedArgs = $this->request->getParam('pass');
362+
$redirectUrl = ['controller' => $this->request->controller, 'action' => $this->action];
363+
if (!empty($passedArgs)) {
364+
foreach ($passedArgs as $arg) {
365+
$redirectUrl[] = $arg;
366+
}
367+
}
368+
return $this->controller->redirect($redirectUrl);
362369
}
363370

364371
/**

0 commit comments

Comments
 (0)