[Fusionforge-commits] r9907 - trunk/gforge/common/include

Roland Mas lolando at libremir.placard.fr.eu.org
Sun May 23 22:25:26 CEST 2010


Author: lolando
Date: 2010-05-23 22:25:26 +0200 (Sun, 23 May 2010)
New Revision: 9907

Modified:
   trunk/gforge/common/include/Role.class.php
Log:
Bugfixes

Modified: trunk/gforge/common/include/Role.class.php
===================================================================
--- trunk/gforge/common/include/Role.class.php	2010-05-23 19:46:00 UTC (rev 9906)
+++ trunk/gforge/common/include/Role.class.php	2010-05-23 20:25:26 UTC (rev 9907)
@@ -129,12 +129,13 @@
 	}
 
 	function getLinkedProjects () { // From the PFO spec
-		return $this->Group ;
+		$result = array () ;
 
+		$result[] = $this->Group ;
+
 		$res = db_query_params('SELECT group_id FROM role_project_refs WHERE role_id=$1',
 				       array ($this->getID()));
 		
-		$result = array () ;
 	
 		while ($arr =& db_fetch_array($res)) {
 			$result[] = group_get_object ($arr['group_id']) ;
@@ -421,7 +422,7 @@
 		$new_pa['pm'] = array () ;
 		foreach ($projects as $p) {
 			$pgf = new ProjectGroupFactory ($p) ;
-			$pgs = $atf->getProjectGroups () ;
+			$pgs = $pgf->getProjectGroups () ;
 			foreach ($pgs as $g) {
 				if (USE_PFO_RBAC) {
 					if (array_key_exists ('pm', $this->perms_array)




More information about the Fusionforge-commits mailing list