View Issue Details

IDProjectCategoryView StatusLast Update
0013320mantisbtfeaturepublic2011-09-27 06:43
Reportervincent_sels Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Product Version1.2.8 
Summary0013320: Set custom status when user replies to feedback
Description

I love the $g_reassign_on_feedback feature. However, when the reporter replies to the feedback and the ticket was already assigned, status 'assigned' doesn't really stand out. In this situation, we use status 'confirmed' in our company. Personally I don't mind that it goes back to 'assigned' but I won't be able to persuade the rest of my team. So being able to configure the status to select upon feedback given would be perfect.

Tagspatch
Attached Files
0013320.diff (1,226 bytes)   
--- C:/Documents and Settings/vsel/mantisbt-1.2.8/config_defaults_inc.php	Mon Sep 26 21:54:19 2011
+++ C:/Documents and Settings/vsel/mantisbt-edited/config_defaults_inc.php	Mon Sep 26 22:09:42 2011
@@ -2724,6 +2724,13 @@
 	 */
 	$g_view_additional_information_threshold = DEVELOPER;
 
+	/**
+	 * when a reporter replies to a ticket in feedback that is assigned to someone
+	 * then automatically set the status to this. If it is not yet assigned, set status to _NEW.
+	 * @global int $g_bug_replied_status
+	 */
+	$g_bug_replied_status = ASSIGNED;
+
 	/************************************
 	 * MantisBT Look and Feel Variables *
 	 ************************************/
--- C:/Documents and Settings/vsel/mantisbt-1.2.8/core/bugnote_api.php	Tue Sep 06 10:23:10 2011
+++ C:/Documents and Settings/vsel/mantisbt-edited/core/bugnote_api.php	Sun Sep 18 01:26:48 2011
@@ -197,7 +197,7 @@
 		if ( bug_get_field( $p_bug_id, 'handler_id') == 0 ) {
 			bug_set_field( $p_bug_id, 'status', config_get( 'bug_submit_status' ) );
 		} else {
-			bug_set_field( $p_bug_id, 'status', config_get( 'bug_assigned_status' ) );
+			bug_set_field( $p_bug_id, 'status', config_get( 'bug_replied_status' ) );
 		}
 	}
 
0013320.diff (1,226 bytes)   

Activities

vincent_sels

vincent_sels

2011-09-17 19:36

reporter   ~0029787

Last edited: 2011-09-17 19:37

I resolved this by adding a custom setting:

$g_bug_replied_status = CONFIRMED;

And altering the following code:

File: \core\bugnote_api.php
Function: bugnote_add

...

if it was FEEDBACK its NEW_ now

if ( config_get( 'reassign_on_feedback' ) &&
    bug_get_field( $p_bug_id, 'status' ) == config_get( 'bug_feedback_status' ) &&
    bug_get_field( $p_bug_id, 'reporter_id' ) == $c_user_id ) {

    if ( bug_get_field( $p_bug_id, 'handler_id') == 0 ) {
        bug_set_field( $p_bug_id, 'status', config_get( 'bug_submit_status' ) );
    } else {
        bug_set_field( $p_bug_id, 'status', config_get( <b>'bug_replied_status'</b> ) );
    }
}

...