[TASK] Fix step handling

This commit is contained in:
Philipp Dieter 2020-08-04 23:59:33 +02:00
parent 7ed00c1bbb
commit decc709e55

View File

@ -157,6 +157,7 @@ class ActionController extends BaseController
$this->dataMapper = $this->objectManager->get( $this->dataMapper = $this->objectManager->get(
DataMapper::Class DataMapper::Class
); );
$this->arguments->addNewArgument('step', 'string', false, false);
} }
/** /**
@ -182,9 +183,9 @@ class ActionController extends BaseController
$testStep = null $testStep = null
) { ) {
$step = null; $step = null;
//if (array_key_exists('step', $this->arguments)){ if ($this->arguments->hasArgument('step')){
// $step = $ $step = $this->arguments->getArgument('step')->getValue();
//} }
if ( if (
$this->request->getMethod() == 'POST' $this->request->getMethod() == 'POST'
&& $step == $testStep && $step == $testStep