r106135 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106134‎ | r106135 | r106136 >
Date:23:49, 13 December 2011
Author:laner
Status:ok
Tags:
Comment:
Fix issue in add rule in security groups. Show security groups to add by project.
Modified paths:
  • /trunk/extensions/OpenStackManager/special/SpecialNovaSecurityGroup.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OpenStackManager/special/SpecialNovaSecurityGroup.php
@@ -338,12 +338,14 @@
339339 return false;
340340 }
341341 $group_keys = array();
 342+ $info = array();
342343 $securityGroups = $this->adminNova->getSecurityGroups();
343344 foreach ( $securityGroups as $securityGroup ) {
344345 $securityGroupName = $securityGroup->getGroupName();
345346 $securityGroupProject = $securityGroup->getOwner();
346 - $group_keys["$securityGroupName"] = $securityGroupName . ':' . $securityGroupProject;
 347+ $info["$securityGroupProject"]["$securityGroupName"] = $securityGroupName . ':' . $securityGroupProject;
347348 }
 349+ $group_keys = $info;
348350 $securitygroupname = $wgRequest->getText( 'groupname' );
349351 $securityGroupInfo = array();
350352 $securityGroupInfo['groupname'] = array(

Status & tagging log