Fix parse error in notifications.php: escape inner quotes in LIKE string

The $statusSql double-quoted string contained '%"status":%' which caused
PHP to terminate the string at the inner double quotes, resulting in a
parse error (unexpected identifier 'status') on the beta server.

Also cleared stale stats cache that stored by_assignee in old name=>count
map format instead of the current array-of-objects format.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-05 11:25:26 -04:00
parent 9494df2bf9
commit 5e04478586
+1 -1
View File
@@ -127,7 +127,7 @@ $statusSql = "SELECT DISTINCT
AND al.entity_type = 'ticket' AND al.entity_type = 'ticket'
AND al.user_id != ? AND al.user_id != ?
AND al.created_at >= DATE_SUB(NOW(), INTERVAL 7 DAY) AND al.created_at >= DATE_SUB(NOW(), INTERVAL 7 DAY)
AND al.details LIKE '%"status":%' AND al.details LIKE '%\"status\":%'
ORDER BY al.created_at DESC ORDER BY al.created_at DESC
LIMIT 10"; LIMIT 10";