RSS Feed/News Deleting a trophy fails to delete xf_user_alert entries

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
28,804
Points
823

Reputation:

The method XF\Entity\Trophy::_postDelete checks the "xf_user_alert" column "extra_data" (which is empty!) although it seems like it should check the "content_id" column because that's where the trophy_id is stored.

Diff:

Code:
--- a/src/XF/Entity/Trophy.php
+++ b/src/XF/Entity/Trophy.php
@@ -92,7 +92,8 @@ class Trophy extends Entity

$this->db()->delete(
            'xf_user_alert',
-           "content_type = 'trophy' AND action = 'award' AND extra_data LIKE '%i:" ...

Read more

Continue reading...
 
Status
Not open for further replies.
Top