From: Glenn C. <gl...@th...> - 2004-10-01 14:46:26
|
If anyone was interested in the solution here is the diff. It includes adding the project name before the string 'summary_title'. Index: summary_jpgraph_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/summary_jpgraph_page.php,v retrieving revision 1.22 diff -r1.22 summary_jpgraph_page.php 19,20c19,23 < $t_project_id = helper_get_current_project(); < $t_user_id = auth_get_current_user_id(); --- > $t_project_id = gpc_get_int( 'project_id', helper_get_current_project() ); > > if ( ALL_PROJECTS != $t_project_id ) { > project_ensure_exists( $t_project_id ); > } 21a25,27 > helper_set_current_project( $t_project_id ); > > $t_user_id = auth_get_current_user_id(); 27a34,35 > $project_name = lang_get( 'all_projects' ); > 29a38 > $project_name = project_get_field( $t_project_id, 'name' ); 78a88 > <?php echo $project_name ?> -----Original Message----- From: man...@li... [mailto:man...@li...] On Behalf Of Francisco Mancardi Sent: 01 October 2004 13:25 To: man...@li... Subject: Re: [Mantisbt-help] parsing project_id in url Glenn Collins wrote: >Hello all, > >Is there any way to set the project_id when loading the Advanced >Summary page from an external web page? > >Eg, http://bugs/summary_jpgraph_page.php?project_id=0 (this does not >work) > >Currently the url loads the project that was last set when browsing the >bugs database. I would like to set the project id to "All Projects" regardless of what project was/is viewed. > >Thanks. >Glenn > > > > >------------------------------------------------------- >This SF.net email is sponsored by: IT Product Guide on >ITManagersJournal Use IT products in your business? Tell us what you >think of them. Give us Your Opinions, Get Free ThinkGeek Gift >Certificates! Click to find out more >http://productguide.itmanagersjournal.com/guidepromo.tmpl >_______________________________________________ >Mantisbt-help mailing list >Man...@li... >https://lists.sourceforge.net/lists/listinfo/mantisbt-help > > You have to modify the page to get the var from $_GET . best regards ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Mantisbt-help mailing list Man...@li... https://lists.sourceforge.net/lists/listinfo/mantisbt-help |