Files
shopdb/displaynotifications.asp
cproudlock bfaa68d5d0 Fix notifications 'Active Only' filter showing completed notifications
Issue: Active Only mode was showing notifications marked isactive=1 even if
their endtime had passed, displaying them with 'Complete' status.

Root Cause: WHERE clause only checked isactive=1, not whether endtime < NOW()

Fix: Updated WHERE clause to exclude notifications past their endtime:
- Active notifications now require: isactive=1 AND (endtime IS NULL OR endtime >= NOW())
- Still shows recently completed notifications within 30-min grace period for fade-out
- 'Active Only' badge now accurately reflects truly active notifications

Impact: Users will no longer see 'Complete' notifications when filtering to Active Only

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-21 09:49:01 -05:00

8.7 KiB