jenkins-bot has submitted this change and it was merged.
Change subject: Add setChildren() & setDepth() in loadTopicTitle
......................................................................
Add setChildren() & setDepth() in loadTopicTitle
Change-Id: If8d571e972d8c9c42bf3958b1e82529ce61ed9ef
---
M includes/Block/Topic.php
1 file changed, 6 insertions(+), 0 deletions(-)
Approvals:
Werdna: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/Block/Topic.php b/includes/Block/Topic.php
index ae15731..ccbe736 100644
--- a/includes/Block/Topic.php
+++ b/includes/Block/Topic.php
@@ -688,6 +688,12 @@
throw new \MWException( 'Every workflow must
have an associated topic title' );
}
$this->topicTitle = reset( $found );
+
+ // this method loads only title, nothing else;
otherwise, you're
+ // looking for loadRootPost
+ $this->topicTitle->setChildren( array() );
+ $this->topicTitle->setDepth( 0 );
+
if ( !$this->permissions->isAllowed( $this->topicTitle,
'view' ) ) {
$this->topicTitle = null;
$this->errors['permissions'] = wfMessage(
'flow-error-not-allowed' );
--
To view, visit https://gerrit.wikimedia.org/r/97511
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If8d571e972d8c9c42bf3958b1e82529ce61ed9ef
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Matthias Mullie <[email protected]>
Gerrit-Reviewer: Matthias Mullie <[email protected]>
Gerrit-Reviewer: Werdna <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits