jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/399769 )

Change subject: Handle status array when passed as list
......................................................................


Handle status array when passed as list

Change-Id: Icf140f6f305267068d0a1b80585e686c5764f6e4
---
M includes/SpecialPhabTaskGraph.php
1 file changed, 4 insertions(+), 1 deletion(-)

Approvals:
  jenkins-bot: Verified
  MarkAHershberger: Looks good to me, approved



diff --git a/includes/SpecialPhabTaskGraph.php 
b/includes/SpecialPhabTaskGraph.php
index 9672ca6..6b161f4 100644
--- a/includes/SpecialPhabTaskGraph.php
+++ b/includes/SpecialPhabTaskGraph.php
@@ -36,8 +36,11 @@
                }
 
                $statusarray = $request->getArray( 'status' );
-               if ( $statusarray == [] ) {
+               $size = count( $statusarray );
+               if ( $size === 0 ) {
                        $statusarray = [ 'open', 'stalled' ];
+               } elseif ( $size === 1 ) {
+                       $statusarray = array_map( 'trim', explode( ',' , 
$statusarray[0] ) );
                }
 
                $tasks = $request->getText( 'tasks' );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Icf140f6f305267068d0a1b80585e686c5764f6e4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PhabTaskGraph
Gerrit-Branch: master
Gerrit-Owner: Cicalese <[email protected]>
Gerrit-Reviewer: MarkAHershberger <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to