Skip to content

Commit

Permalink
Merge pull request #24 from mlingureanu/master
Browse files Browse the repository at this point in the history
Update WizardComponent.php
  • Loading branch information
bancer committed Apr 19, 2017
2 parents a898116 + 1484bfc commit 50e80e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Controller/Component/WizardComponent.php
Expand Up @@ -377,6 +377,9 @@ public function process($step) {
$processCallback = Inflector::variable('process_' . $this->_currentStep);
if (method_exists($this->controller, $processCallback)) {
$proceed = $this->controller->$processCallback();
if (!is_bool($proceed)) {
throw new NotImplementedException(sprintf(__('Process Callback Controller::%s should return boolean', $processCallback)));
}
} elseif ($this->autoValidate) {
$proceed = $this->_validateData();
} else {
Expand Down

0 comments on commit 50e80e8

Please sign in to comment.