[Mantisconnect-cvs] SF.net SVN: mantisconnect: [141] mantisconnect/trunk/webservice/mc/ mc_project_
Brought to you by:
vboctor
From: <kin...@us...> - 2007-07-16 03:42:50
|
Revision: 141 http://svn.sourceforge.net/mantisconnect/?rev=141&view=rev Author: kingargyle1 Date: 2007-07-15 20:42:48 -0700 (Sun, 15 Jul 2007) Log Message: ----------- Issue 320: have mc_projects_get_user_accessible return an ALL PROJECTS record Implementation Modified Paths: -------------- mantisconnect/trunk/webservice/mc/mc_project_api.php Modified: mantisconnect/trunk/webservice/mc/mc_project_api.php =================================================================== --- mantisconnect/trunk/webservice/mc/mc_project_api.php 2007-07-11 19:13:10 UTC (rev 140) +++ mantisconnect/trunk/webservice/mc/mc_project_api.php 2007-07-16 03:42:48 UTC (rev 141) @@ -99,6 +99,17 @@ } $t_result = array(); + $t_result[] = array( + 'id'=>ALL_PROJECTS, + 'name'=>'*All Projects*', + 'status'=>array('id'=>50,'name'=>'stable'), + 'enabled'=>true, + 'view_state'=>array('id'=>10,'name'=>'public'), + 'access_min'=>array('id'=>10,'name'=>'viewer'), + 'file_path'=>'', + 'descriptionn'=>'All Projects Filter', + 'subprojects'=>array() + ); foreach( user_get_accessible_projects( $t_user_id ) as $t_project_id ) { $t_project_row = project_cache_row( $t_project_id ); $t_project = array(); @@ -482,7 +493,7 @@ $t_projects = array( $t_project_id ); } - $t_projects[] = ALL_PROJECTS; # add "ALL_PROJECTS to the list of projects to fetch + $t_projects[] = ALL_PROJECTS; # add ALL_PROJECTS to the list of projects to fetch $t_reqd_access = config_get( 'view_proj_doc_threshold' ); if ( is_array( $t_reqd_access ) ) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |