Skip to content

Commit

Permalink
Adjusting behats to new step + fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
arti0090 committed Sep 9, 2021
1 parent 81d09b9 commit fc76adb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Provider/CatalogPromotionVariantsProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public function provideEligibleVariants(CatalogPromotionInterface $catalogPromot
$configuration = $rule->getConfiguration();

/** We can do that for now, as we have only one rule */
$variants = $this->getVariantsProducts($configuration, $variants);
if (array_key_exists('variants', $configuration)) {
$variants = $this->getVariantsProducts($configuration, $variants);
}
}

return $variants;
Expand Down

0 comments on commit fc76adb

Please sign in to comment.