jenkins-bot has submitted this change and it was merged.
Change subject: Include workflow title in TopicList API response
......................................................................
Include workflow title in TopicList API response
This is already used by the new topic placeholder, but it only works
on the server rendering.
Bug: 72655
Change-Id: Ib571bf0332cd798bfec63be42d24a6074fd9fdf1
---
M includes/Formatter/TopicListFormatter.php
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
EBernhardson: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/Formatter/TopicListFormatter.php
b/includes/Formatter/TopicListFormatter.php
index 169c470..45ce883 100644
--- a/includes/Formatter/TopicListFormatter.php
+++ b/includes/Formatter/TopicListFormatter.php
@@ -32,8 +32,10 @@
}
public function buildEmptyResult( Workflow $workflow ) {
+ $title = $workflow->getArticleTitle();
return array(
'type' => 'topiclist',
+ 'title' => $title->getPrefixedText(),
'roots' => array(),
'posts' => array(),
'revisions' => array(),
--
To view, visit https://gerrit.wikimedia.org/r/169636
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib571bf0332cd798bfec63be42d24a6074fd9fdf1
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>
Gerrit-Reviewer: EBernhardson <[email protected]>
Gerrit-Reviewer: SG <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits