[evolvis-commits] r15228: Bugfixes

mirabilos at evolvis.org mirabilos at evolvis.org
Mon Feb 28 23:50:24 CET 2011


Author: mirabilos
Date: 2011-02-28 23:50:24 +0100 (Mon, 28 Feb 2011)
New Revision: 15228

Modified:
   trunk/gforge_base/evolvisforge-5.1/gforge/common/include/Role.class.php
Log:
Bugfixes

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/common/include/Role.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/common/include/Role.class.php	2011-02-28 22:50:22 UTC (rev 15227)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/common/include/Role.class.php	2011-02-28 22:50:24 UTC (rev 15228)
@@ -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 evolvis-commits mailing list