Call step before save hook more safely and explicitly

[MAILPOET-4515]
This commit is contained in:
Jan Jakes
2022-08-02 10:10:47 +02:00
committed by Veljko V
parent 08e8e88502
commit 24a63f6448
2 changed files with 4 additions and 10 deletions

View File

@ -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;
}