Add before step save hook per step key to simplify usage

[MAILPOET-4515]
This commit is contained in:
Jan Jakes
2022-08-02 10:20:36 +02:00
committed by Veljko V
parent 24a63f6448
commit d1fddb85f7
5 changed files with 12 additions and 7 deletions

View File

@@ -56,6 +56,7 @@ class UpdateWorkflowController {
$this->updateStepsController->updateSteps($workflow, $data['steps']);
foreach ($workflow->getSteps() as $step) {
$this->hooks->doWorkflowStepBeforeSave($step);
$this->hooks->doWorkflowStepByKeyBeforeSave($step);
}
$changed = true;
}