1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 00:06:55 +02:00

Add support for feature request issue processwire/processwire-issues#1032

This commit is contained in:
Ryan Cramer
2019-11-15 15:14:15 -05:00
parent 7a41ffb089
commit 8d82308c4c

View File

@@ -651,6 +651,7 @@ abstract class AdminThemeFramework extends AdminTheme {
$text = $notice->text;
$allowMarkup = $notice->flags & Notice::allowMarkup;
$groupByType = $options['groupByType'] && !($notice->flags & Notice::noGroup) && !($notice instanceof NoticeError);
if($allowMarkup) {
// leave $text alone
@@ -695,7 +696,7 @@ abstract class AdminThemeFramework extends AdminTheme {
'{text}' => $text,
);
if($options['groupByType']) {
if($groupByType) {
if(!isset($noticesArray[$noticeType])) $noticesArray[$noticeType] = array();
$noticesArray[$noticeType][] = $replacements;
} else {