From aedbb34dfe127e482701dfd2027802939dc873d8 Mon Sep 17 00:00:00 2001 From: aude Date: Wed, 13 Jan 2016 15:24:02 -0500 Subject: [PATCH] Fix undefined property notice in ChangesList This comes from ApiQueryWatchlist, which calls ChangesList::isUnpatrolled with recent change row entries. Since If71af587, rc_log_type is now needed along with rc_patrolled. Bug: T123542 Change-Id: If6507121e59c53df925998f383c9bdf8f2936e37 --- includes/api/ApiQueryWatchlist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiQueryWatchlist.php b/includes/api/ApiQueryWatchlist.php index 75fc33e2ab..ffbd75aa55 100644 --- a/includes/api/ApiQueryWatchlist.php +++ b/includes/api/ApiQueryWatchlist.php @@ -105,7 +105,7 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase { $this->addFieldsIf( 'rc_user', $this->fld_user || $this->fld_userid ); $this->addFieldsIf( 'rc_user_text', $this->fld_user ); $this->addFieldsIf( 'rc_comment', $this->fld_comment || $this->fld_parsedcomment ); - $this->addFieldsIf( 'rc_patrolled', $this->fld_patrol ); + $this->addFieldsIf( array( 'rc_patrolled', 'rc_log_type' ), $this->fld_patrol ); $this->addFieldsIf( array( 'rc_old_len', 'rc_new_len' ), $this->fld_sizes ); $this->addFieldsIf( 'wl_notificationtimestamp', $this->fld_notificationtimestamp ); $this->addFieldsIf( -- 2.20.1