[Fusionforge-commits] r8590 - trunk/gforge/plugins/contribtracker/www

Roland Mas lolando at libremir.placard.fr.eu.org
Fri Dec 18 18:42:30 CET 2009


Author: lolando
Date: 2009-12-18 18:42:30 +0100 (Fri, 18 Dec 2009)
New Revision: 8590

Modified:
   trunk/gforge/plugins/contribtracker/www/global_admin.php
Log:
Remember current legal structure when editing actors

Modified: trunk/gforge/plugins/contribtracker/www/global_admin.php
===================================================================
--- trunk/gforge/plugins/contribtracker/www/global_admin.php	2009-12-18 17:42:22 UTC (rev 8589)
+++ trunk/gforge/plugins/contribtracker/www/global_admin.php	2009-12-18 17:42:30 UTC (rev 8590)
@@ -456,7 +456,11 @@
 			 <?php
 			 $structs = $plugin->getLegalStructures () ;
 	foreach ($structs as $s) {
-		print '<option value="'.$s->getId().'">'.htmlspecialchars($s->getName()).'</option>' ;
+		print '<option value="'.$s->getId().'".' ;
+		if ($s->getId() == $actor->getLegalStructure()->getId()) {
+			print ' selected' ;
+		}
+		print '>'.htmlspecialchars($s->getName()).'</option>' ;
 	}
 	?>
 		</select>




More information about the Fusionforge-commits mailing list