jenkins-bot has submitted this change and it was merged.

Change subject: Revisionable->Collection
......................................................................


Revisionable->Collection

Change-Id: Ic83be35155a57200638e480012049231dcf50e15
---
M FlowActions.php
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  EBernhardson: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/FlowActions.php b/FlowActions.php
index 7cf026c..3fb1089 100644
--- a/FlowActions.php
+++ b/FlowActions.php
@@ -508,8 +508,8 @@
                                // is the same as the moderation (e.g. if user 
can't see
                                // suppress actions, he can't see restores from 
suppress
                                if ( $revision->getChangeType() == 
'restore-post' ) {
-                                       $revisionable = 
$revision->getRevisionable();
-                                       $previous = 
$revisionable->getPreviousRevision( $revision );
+                                       $revisionable = 
$revision->getCollection();
+                                       $previous = 
$revisionable->getPrevRevision( $revision );
 
                                        if ( $previous->getModerationState() 
=== AbstractRevision::MODERATED_NONE ) {
                                                return '';

-- 
To view, visit https://gerrit.wikimedia.org/r/113463
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic83be35155a57200638e480012049231dcf50e15
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Matthias Mullie <mmul...@wikimedia.org>
Gerrit-Reviewer: EBernhardson <ebernhard...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to