Skip to content

Commit

Permalink
fix missing data when creating member array on alerts page
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Oct 29, 2024
1 parent b35dd1c commit 3fc6df3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/AlertView/Standard.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3fc6df3

Please sign in to comment.