From 9fb9571370a8a0dd57a1c2bd3ef6f8dc00388291 Mon Sep 17 00:00:00 2001 From: Matt Rosenquist Date: Thu, 9 Jun 2016 15:20:13 +0100 Subject: [PATCH] Fix Step priorities #293 (#294) * Fix Step priorities https://github.com/ddeboer/data-import/issues/293 * Update StepAggregator.php --- src/Workflow/StepAggregator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Workflow/StepAggregator.php b/src/Workflow/StepAggregator.php index db319b83..afdddf82 100644 --- a/src/Workflow/StepAggregator.php +++ b/src/Workflow/StepAggregator.php @@ -80,7 +80,7 @@ public function __construct(Reader $reader, $name = null) */ public function addStep(Step $step, $priority = null) { - $priority = null === $priority && $step instanceof PriorityStep ? $step->getPriority() : null; + $priority = null === $priority && $step instanceof PriorityStep ? $step->getPriority() : $priority; $priority = null === $priority ? 0 : $priority; $this->steps->insert($step, $priority);