Legoktm has uploaded a new change for review.

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

Change subject: Make action=history work on Flow pages
......................................................................

Make action=history work on Flow pages

Change-Id: I8c60a57c6880df6d21f1f07df5be8584a6a5e19b
---
M Hooks.php
1 file changed, 5 insertions(+), 1 deletion(-)


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

diff --git a/Hooks.php b/Hooks.php
index 8655601..d98247f 100644
--- a/Hooks.php
+++ b/Hooks.php
@@ -154,7 +154,6 @@
 
                        try {
                                $workflowId = $request->getVal( 'workflow' );
-                               $action = $request->getVal( 'action', 'view' );
 
                                $loader = $container['factory.loader.workflow']
                                        ->createWorkflowLoader( $title, 
UUID::create( $workflowId ) );
@@ -164,6 +163,11 @@
                                        
$occupationController->ensureFlowRevision( $article );
                                }
 
+                               // DWIM: action=history should be equal to 
action=board-history
+                               if ( $action === 'history' ) {
+                                       $action = 'board-history';
+                               }
+
                                $view->show( $loader, $action );
                        } catch( Flow\Exception\FlowException $e ) {
                                $e->setOutput( $output );

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

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

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

Reply via email to