From 0004acaf0449c12aaf02b8dcfce8e35e42157e65 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Wed, 4 Dec 2024 16:40:04 +0000 Subject: [PATCH] fixup! fixup! fixup! better detection of MP related alerts for grouping --- classes/AlertView/Standard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/AlertView/Standard.php b/classes/AlertView/Standard.php index 1c6cd5c6b5..25b1f4269a 100644 --- a/classes/AlertView/Standard.php +++ b/classes/AlertView/Standard.php @@ -626,7 +626,7 @@ protected function setUserData() { $add = false; $this->data['all_keywords'][] = $term; $this->data['own_member_alerts'][] = $alert; - } elseif (\MySociety\TheyWorkForYou\Utility\Search::searchMemberDbLookupWithNames($term)) { + } elseif (\MySociety\TheyWorkForYou\Utility\Search::searchMemberDbLookupWithNames($term, true)) { if (!array_key_exists($term, $this->data['spoken_alerts'])) { $this->data['spoken_alerts'][$term] = []; }