Skip to content

Commit

Permalink
Merge pull request #56 from nicoschefer/patch-1
Browse files Browse the repository at this point in the history
Avoid repeating identical error messages
  • Loading branch information
Shardj committed Mar 18, 2020
2 parents ad46372 + 5bf1a68 commit 764ec85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/Zend/Form/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -2276,6 +2276,7 @@ protected function _getErrorMessages()
foreach ($value as $val) {
$aggregateMessages[] = str_replace('%value%', $val, $message);
}
$aggregateMessages = array_unique($aggregateMessages); //prevent repeating the identical error message for multichoice-items
if (count($aggregateMessages)) {
if ($this->_concatJustValuesInErrorMessage) {
$values = implode($this->getErrorMessageSeparator(), $value);
Expand Down

0 comments on commit 764ec85

Please sign in to comment.