Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1 from paul-stolk-webdiensten/416-group-product-e…
Browse files Browse the repository at this point in the history
…rrors

Filter error array by unique values
  • Loading branch information
paul-stolk-webdiensten authored Oct 21, 2019
2 parents abbfa03 + 18fb482 commit de92f12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ protected function _prepareOptions(\Magento\Framework\DataObject $buyRequest, $p
}
}
if (count($results) > 0) {
throw new LocalizedException(__(implode("\n", $results)));
throw new LocalizedException(__(implode("\n", array_unique($results))));
}
}

Expand Down

0 comments on commit de92f12

Please # to comment.