From: aude Date: Wed, 13 Jan 2016 20:24:02 +0000 (-0500) Subject: Fix undefined property notice in ChangesList X-Git-Tag: 1.31.0-rc.0~8338^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=aedbb34dfe127e482701dfd2027802939dc873d8;p=lhc%2Fweb%2Fwiklou.git 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 --- 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(