|
|
Choosing A Webhost: |
mantisbt manage_config_email_page.php,1.2,1.3 manage_config_work_threshold_: msg#00031bug-tracking.mantis.cvs
Update of /cvsroot/mantisbt/mantisbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32387 Modified Files: manage_config_email_page.php manage_config_work_threshold_page.php manage_config_workflow_page.php Log Message: fix for 0005365: Wrong defaulting for workflow transitions made global vs specific project settings clearer to user Index: manage_config_workflow_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/manage_config_workflow_page.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- manage_config_workflow_page.php 27 Feb 2005 15:33:01 -0000 1.2 +++ manage_config_workflow_page.php 20 Mar 2005 14:34:03 -0000 1.3 @@ -153,13 +153,28 @@ # count arcs in and out of each status $t_enum_status = config_get( 'status_enum_string' ); + $t_status_arr = explode_enum_string( $t_enum_status ); + $t_enum_workflow = config_get( 'status_enum_workflow' ); + if ( 0 == count( $t_enum_workflow ) ) { + # workflow is not set, default it to all transitions + foreach ( $t_status_arr as $t_status ) { + list( $t_status_id, $t_status_label ) = explode_enum_arr( $t_status ); + $t_temp_workflow = array(); + foreach ( $t_status_arr as $t_next ) { + list( $t_next_id, $t_next_label ) = explode_enum_arr( $t_next ); + if ( $t_status_id <> $t_next_id ) { + $t_temp_workflow[] = $t_next; + } + } + $t_enum_workflow[$t_status_id] = implode( ',', $t_temp_workflow ); + } + } $t_extra_enum_status = '0:non-existent,' . $t_enum_status; $t_lang_enum_status = '0:' . lang_get( 'non_existent' ) . ',' . lang_get( 'status_enum_string' ); $t_all_status = explode( ',', $t_extra_enum_status); - $t_status_arr = explode_enum_string( $t_enum_status ); $t_entry = array(); $t_exit = array(); $t_validation_result = ''; @@ -234,7 +249,12 @@ if ( $t_can_change_flags ) { echo "<form name=\"workflow_config_action\" method=\"post\" action=\"manage_config_workflow_set.php\">\n"; } - echo '<p class="form-title">' . lang_get( 'project_name' ) . ': ' . project_get_name( $t_project ) . '</p>' . "\n"; + if ( ALL_PROJECTS == $t_project ) { + $t_project_title = lang_get( 'config_all_projects' ); + } else { + $t_project_title = sprintf( lang_get( 'config_project' ) , project_get_name( $t_project ) ); + } + echo '<p class="bold">' . $t_project_title . '</p>' . "\n"; # show the settings used to derive the table Index: manage_config_email_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/manage_config_email_page.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- manage_config_email_page.php 27 Feb 2005 15:33:01 -0000 1.2 +++ manage_config_email_page.php 20 Mar 2005 14:34:03 -0000 1.3 @@ -98,6 +98,13 @@ echo "<form name=\"mail_config_action\" method=\"post\" action=\"manage_config_email_set.php\">\n"; } + if ( ALL_PROJECTS == $t_project ) { + $t_project_title = lang_get( 'config_all_projects' ); + } else { + $t_project_title = sprintf( lang_get( 'config_project' ) , project_get_name( $t_project ) ); + } + echo '<p class="bold">' . $t_project_title . '</p>' . "\n"; + get_section_begin_for_email( lang_get( 'email_notification' ) ); get_capability_row_for_email( lang_get( 'email_on_new' ), 'new' ); get_capability_row_for_email( lang_get( 'email_on_assigned' ), 'owner' ); Index: manage_config_work_threshold_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/manage_config_work_threshold_page.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- manage_config_work_threshold_page.php 19 Mar 2005 16:25:59 -0000 1.1 +++ manage_config_work_threshold_page.php 20 Mar 2005 14:34:03 -0000 1.2 @@ -149,7 +149,14 @@ } echo "<br /><br />\n"; - echo '<p class="form-title">' . lang_get( 'project_name' ) . ': ' . project_get_name( $t_project ) . '</p>' . "\n"; + + if ( ALL_PROJECTS == $t_project ) { + $t_project_title = lang_get( 'config_all_projects' ); + } else { + $t_project_title = sprintf( lang_get( 'config_project' ) , project_get_name( $t_project ) ); + } + echo '<p class="bold">' . $t_project_title . '</p>' . "\n"; + echo "<form name=\"mail_config_action\" method=\"post\" action=\"manage_config_work_threshold_set.php\">\n"; # Issues ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | mantisbt/lang strings_english.txt,1.245,1.246, Glenn Henshaw |
|---|---|
| Next by Date: | mantisbt/core access_api.php,1.38,1.39 bugnote_api.php,1.33,1.34 custom_field_api.php,1.49,1.50 email_api.php,1.109,1.110 file_api.php,1.64,1.65, Glenn Henshaw |
| Previous by Thread: | mantisbt/lang strings_english.txt,1.245,1.246, Glenn Henshaw |
| Next by Thread: | mantisbt/core access_api.php,1.38,1.39 bugnote_api.php,1.33,1.34 custom_field_api.php,1.49,1.50 email_api.php,1.109,1.110 file_api.php,1.64,1.65, Glenn Henshaw |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |