From: Glenn H. <thr...@us...> - 2004-08-10 23:57:02
|
Update of /cvsroot/mantisbt/mantisbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31224 Modified Files: bug_change_status_page.php config_defaults_inc.php Log Message: allow spaces in status names in bug_change_status_page. Updated embedded documentation to match (add-on for solution for M4270) Index: bug_change_status_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/bug_change_status_page.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- bug_change_status_page.php 9 Aug 2004 16:29:36 -0000 1.4 +++ bug_change_status_page.php 10 Aug 2004 23:56:51 -0000 1.5 @@ -25,7 +25,7 @@ access_ensure_bug_level( access_get_status_threshold( $f_new_status ), $f_bug_id ); - $t_status_label = get_enum_to_string( config_get( 'status_enum_string' ), $f_new_status ); + $t_status_label = str_replace( " ", "_", get_enum_to_string( config_get( 'status_enum_string' ), $f_new_status ) ); $t_resolved = config_get( 'bug_resolved_status_threshold' ); $t_bug = bug_get( $f_bug_id ); Index: config_defaults_inc.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/config_defaults_inc.php,v retrieving revision 1.195 retrieving revision 1.196 diff -u -d -r1.195 -r1.196 --- config_defaults_inc.php 9 Aug 2004 16:29:36 -0000 1.195 +++ config_defaults_inc.php 10 Aug 2004 23:56:51 -0000 1.196 @@ -1057,7 +1057,8 @@ $g_reproducibility_enum_string = '10:always,30:sometimes,50:random,70:have not tried,90:unable to duplicate,100:N/A'; $g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved,90:closed'; # @@@ for documentation, the values in this list are also used to define variables in the language files - # thus they cannot have embedded spaces. (e.g., $s_new_bug_title referenced in bug_change_status_page.php ) + # (e.g., $s_new_bug_title referenced in bug_change_status_page.php ) + # Embedded spaces are converted to underscores (e.g., "working on" references $s_working_on_bug_title). # they are also expected to be english names for the states $g_resolution_enum_string = '10:open,20:fixed,30:reopened,40:unable to duplicate,50:not fixable,60:duplicate,70:not a bug,80:suspended,90:wont fix'; $g_projection_enum_string = '10:none,30:tweak,50:minor fix,70:major rework,90:redesign'; |