Matthias Mullie has uploaded a new change for review.

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

Change subject: Fix no-js reply
......................................................................

Fix no-js reply

Passing no workflow id along meant that the workflow was loaded via page title
only, resulting in the 'discussion' workflow being loaded, which resulted in
HeaderBlock, TopicListBlock & BoardHistoryBlock being created.
Since we're replying, we actually want workflow of type 'topic' loaded (which
creates TopicBlock). TopicBlock knows how to handle the submitted reply.

Change-Id: Ic4d975d9ae08b54bb40ff0a0d4339738a7b23af6
---
M includes/UrlGenerator.php
1 file changed, 1 insertion(+), 0 deletions(-)


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

diff --git a/includes/UrlGenerator.php b/includes/UrlGenerator.php
index 7c65eda..3b7fb6f 100644
--- a/includes/UrlGenerator.php
+++ b/includes/UrlGenerator.php
@@ -66,6 +66,7 @@
                        wfMessage( 'flow-post-action-reply' ),
                        $this->resolveTitle( $title, $workflowId ),
                        array(
+                               'workflow' => $workflowId->getAlphadecimal(),
                                'topic_replyTo' => $postId->getAlphadecimal(),
                                'action' => 'reply',
                        )

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic4d975d9ae08b54bb40ff0a0d4339738a7b23af6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Matthias Mullie <mmul...@wikimedia.org>

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

Reply via email to