Call step before save hook more safely and explicitly
[MAILPOET-4515]
This commit is contained in:
@ -54,6 +54,9 @@ class UpdateWorkflowController {
|
||||
if (array_key_exists('steps', $data)) {
|
||||
$this->validateWorkflowSteps($workflow, $data['steps']);
|
||||
$this->updateStepsController->updateSteps($workflow, $data['steps']);
|
||||
foreach ($workflow->getSteps() as $step) {
|
||||
$this->hooks->doWorkflowStepBeforeSave($step);
|
||||
}
|
||||
$changed = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user