From: <vb...@us...> - 2004-01-13 12:23:54
|
Update of /cvsroot/mantisbt/mantisbt In directory sc8-pr-cvs1:/tmp/cvs-serv24532 Modified Files: bug_update.php config_defaults_inc.php Log Message: Fixed #3475: Reopen bug to custom status possibility. M config_defaults_inc.php - Added $g_bug_submit_status (default NEW_) [Status to assign to the bug when submitted.] - Added $g_bug_assigned_status (default ASSIGNED) [Status to assign to the bug when assigned.] - Added $g_bug_reopen_status (default FEEDBACK) [Status to assign to the bug when reopened.] - Added $g_bug_reopen_resolution (default REOPENED) [Resolution to assign to the bug when reopened.] - Added "Status Settings" section in the config file to include the above new configs. M bug_update.php - Used $g_bug_assigned_status rather than ASSIGNED. M core/bug_api.php - (bug_create) Used $g_bug_submit_status rather than NEW_. - (bug_create) Used $g_bug_assigned_status rather than ASSIGNED. - (bug_assign) Used $g_bug_assigned_status rather than ASSIGNED. - (bug_reopen) Used $g_bug_reopen_status rather than FEEDBACK. - (bug_reopen) Used $g_bug_reopen_resolution rather then REOPENED. Index: bug_update.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/bug_update.php,v retrieving revision 1.59 retrieving revision 1.60 diff -u -d -r1.59 -r1.60 --- bug_update.php 11 Jan 2004 07:16:06 -0000 1.59 +++ bug_update.php 13 Jan 2004 12:23:50 -0000 1.60 @@ -59,7 +59,7 @@ if ( ( NEW_ == $t_bug_data->status ) && ( 0 != $t_bug_data->handler_id ) && ( ON == config_get( 'auto_set_status_to_assigned' ) ) ) { - $t_bug_data->status = ASSIGNED; + $t_bug_data->status = config_get( 'bug_assigned_status' ); } $t_related_custom_field_ids = custom_field_get_linked_ids( $t_bug_data->project_id ); Index: config_defaults_inc.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/config_defaults_inc.php,v retrieving revision 1.131 retrieving revision 1.132 diff -u -d -r1.131 -r1.132 --- config_defaults_inc.php 11 Jan 2004 07:16:06 -0000 1.131 +++ config_defaults_inc.php 13 Jan 2004 12:23:50 -0000 1.132 @@ -567,15 +567,36 @@ $g_use_ldap_email = OFF; # Should we send to the LDAP email address or what MySql tells us ############################ - # Mantis Misc Settings + # Status Settings ############################ + # Status to assign to the bug when submitted. + $g_bug_submit_status = NEW_; + + # Status to assign to the bug when assigned. + $g_bug_assigned_status = ASSIGNED; + + # Status to assign to the bug when reopened. + $g_bug_reopen_status = FEEDBACK; + + # Resolution to assign to the bug when reopened. + $g_bug_reopen_resolution = REOPENED; + # --- status thresholds (*_status_threshold) --- # Bug is resolved, ready to be closed or reopened. In some custom installations a bug # maybe considered as resolved when it is moved to a custom (FIXED OR TESTED) status. $g_bug_resolved_status_threshold = RESOLVED; + # Automatically set status to ASSIGNED whenever a bug is assigned to a person. + # This is useful for installations where assigned status is to be used when + # the bug is in progress, rather than just put in a person's queue. + $g_auto_set_status_to_assigned = ON; + + ############################ + # Mantis Misc Settings + ############################ + # --- access level thresholds (*_threshold) --- # access level needed to report a bug @@ -725,11 +746,6 @@ # Shows the total number/unique number of queries executed to serve the page. $g_show_queries_count = ON; - # Automatically set status to ASSIGNED whenever a bug is assigned to a person. - # This is useful for installations where assigned status is to be used when - # the bug is in progress, rather than just put in a person's queue. - $g_auto_set_status_to_assigned = ON; - # The regular expression to use when validating new user login names # The default regular expression allows a-z, A-z, 0-9, as well as space and # underscore. If you change this, you may want to update the |