From decc709e55cff840edd365644c41418cee9645b7 Mon Sep 17 00:00:00 2001 From: Philipp Dieter Date: Tue, 4 Aug 2020 23:59:33 +0200 Subject: [PATCH] [TASK] Fix step handling --- Classes/Controller/ActionController.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Classes/Controller/ActionController.php b/Classes/Controller/ActionController.php index 298aafd..16a20d3 100644 --- a/Classes/Controller/ActionController.php +++ b/Classes/Controller/ActionController.php @@ -157,6 +157,7 @@ class ActionController extends BaseController $this->dataMapper = $this->objectManager->get( DataMapper::Class ); + $this->arguments->addNewArgument('step', 'string', false, false); } /** @@ -182,9 +183,9 @@ class ActionController extends BaseController $testStep = null ) { $step = null; - //if (array_key_exists('step', $this->arguments)){ - // $step = $ - //} + if ($this->arguments->hasArgument('step')){ + $step = $this->arguments->getArgument('step')->getValue(); + } if ( $this->request->getMethod() == 'POST' && $step == $testStep