Skip to content

Commit

Permalink
Filter error array by unique values
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-stolk-webdiensten authored Oct 21, 2019
1 parent abbfa03 commit 18fb482
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 18fb482

Please sign in to comment.