Sbisson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/296426

Change subject: Fix notice on flow history page
......................................................................

Fix notice on flow history page

Change-Id: I93f55c384b9eb65a3eb0180352bb0ad720d99153
---
M includes/Formatter/RevisionFormatter.php
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/26/296426/1

diff --git a/includes/Formatter/RevisionFormatter.php 
b/includes/Formatter/RevisionFormatter.php
index 4a68ef5..1c7574d 100644
--- a/includes/Formatter/RevisionFormatter.php
+++ b/includes/Formatter/RevisionFormatter.php
@@ -340,7 +340,10 @@
                                        $row
                                );
 
-                               $res['content']['plaintext'] = 
$res['properties']['topic-of-post-text-from-html']['plaintext'];
+                               // moderated posts won't have that property
+                               if ( isset( 
$res['properties']['topic-of-post-text-from-html']['plaintext'] ) ) {
+                                       $res['content']['plaintext'] = 
$res['properties']['topic-of-post-text-from-html']['plaintext'];
+                               }
                        }
 
                        $res['isNewPage'] = $row->isFirstReply && 
$row->revision->isFirstRevision();

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I93f55c384b9eb65a3eb0180352bb0ad720d99153
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Sbisson <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to