From 935d2fa863f07cae158ffb6cd9dd2cd698870d98 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sat, 12 Apr 2014 22:40:52 +0200 Subject: [PATCH] Fix RevDel_RevisionItem::getAuthorNameField to work for ips The user_name column in the database result is null for anon users, that will always return null when calling getAuthorName. The function getAuthorName is used when the log_search table is filled for revision deletion. After this fix the value for 'target_author_ip' will be there which allows searching for logs where edits of the ip was suppressed (because the search field 'offender' only works for oversighter) Change-Id: I611bc56eefac594a28ad4808fe7d9ba48c872922 --- includes/revisiondelete/RevisionDelete.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/revisiondelete/RevisionDelete.php b/includes/revisiondelete/RevisionDelete.php index 0553880e98..dcec5ddb94 100644 --- a/includes/revisiondelete/RevisionDelete.php +++ b/includes/revisiondelete/RevisionDelete.php @@ -167,7 +167,7 @@ class RevDel_RevisionItem extends RevDel_Item { } public function getAuthorNameField() { - return 'user_name'; // see Revision::selectUserFields() + return 'rev_user_text'; } public function canView() { -- 2.20.1