Page MenuHomePhabricator

Ensure Damaged UI shows "Not Found" when a message no longer exist
Closed, ResolvedPublic

Description

Currently the Damaged UI displays this error when an attempt is made to fetch a message that no longer exist in the database:

TypeError: Return value of CRM_Damaged_BAO_Damaged::retrieve() must be an instance of CRM_Damaged_BAO_Damaged, null returned in CRM_Damaged_BAO_Damaged::retrieve() (line 41 of /srv/org.wikimedia.civicrm/drupal/sites/default/civicrm/extensions/damaged/CRM/Damaged/BAO/Damaged.php).

We need to show a "Message not found" error instead.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
greg triaged this task as Medium priority.Mar 11 2024, 3:27 PM

Change 1011312 had a related patch set uploaded (by Damilare Adedoyin; author: Damilare Adedoyin):

[wikimedia/fundraising/crm@master] Fix Damaged row details error

https://gerrit.wikimedia.org/r/1011312

Change 1011312 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Fix Damaged row details error

https://gerrit.wikimedia.org/r/1011312

XenoRyet set Final Story Points to 4.