Make next step ID nullable (ability to save multiple edges without next steps)
[MAILPOET-5586]
This commit is contained in:
@@ -78,7 +78,8 @@ class DuplicateAutomationController {
|
||||
$step->getKey(),
|
||||
$step->getArgs(),
|
||||
array_map(function (NextStep $nextStep) use ($newIds): NextStep {
|
||||
return new NextStep($newIds[$nextStep->getId()]);
|
||||
$nextStepId = $nextStep->getId();
|
||||
return new NextStep($nextStepId ? $newIds[$nextStepId] : null);
|
||||
}, $step->getNextSteps())
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user