From 3fc6df3f1707defe00314e0776c004f2014b1a29 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Tue, 29 Oct 2024 15:33:54 +0000 Subject: [PATCH] fix missing data when creating member array on alerts page --- classes/AlertView/Standard.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classes/AlertView/Standard.php b/classes/AlertView/Standard.php index 3bc26b7893..96a5e8c7b8 100644 --- a/classes/AlertView/Standard.php +++ b/classes/AlertView/Standard.php @@ -333,6 +333,10 @@ protected function searchForConstituenciesAndMembers() { "person_id" => $MEMBER->person_id, "given_name" => $MEMBER->given_name, "family_name" => $MEMBER->family_name, + "house" => $MEMBER->house_disp, + "title" => $MEMBER->title, + "lordofname" => $MEMBER->lordofname, + "constituency" => $MEMBER->constituency, ]]; } elseif (isset($this->data['representative']) && $this->data['representative'] != '') { $this->data['members'] = \MySociety\TheyWorkForYou\Utility\Search::searchMemberDbLookupWithNames($this->data['representative'], true);