[TASK] Fix step handling
This commit is contained in:
parent
7ed00c1bbb
commit
decc709e55
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user