Steps to Reproduce:
- Go to Special:AbuseLog
- Search by filter ID 1
Actual Results:
No results page
Expected Results:
Results are available, and shown on Special::AbuseLog, but don't appear when I specify filter ID.
On the filter's manage page, I see "Filter hits: 2 hits". When I follow this link, it says none exist.
Further information:
Using SQLite on a local dev install.
Query:
SELECT * FROM abuse_filter_log LEFT JOIN abuse_filter ON ((af_id=afl_filter)) WHERE afl_filter = '1' ORDER BY afl_timestamp DESC LIMIT 51
I think the issue is in "WHERE afl_filter = '1'". The string 1 doesn't appear to be the same as integer 1. As a test, when I make the following change in /includes/special/SpecialAbuseLog.php:534:
From:
$conds['afl_filter'] = $searchIDs;
To:
$conds['afl_filter'] = [1];
Suddenly I see results as expected.