View Issue Details

IDProjectCategoryView StatusLast Update
0010958mantisbtfeaturepublic2013-05-04 02:48
Reporterfschaper Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status acknowledgedResolutionopen 
Product Version1.2.0rc1 
Summary0010958: patch: added "assign to reporter" to the bug_change_status_page
Description

for our workflow, 90% of the time we set the ticket on a "to be tested" status and assign it back to the initial reporter. The way mantis currently handles things, you will have to select the initial reporter from the list of users - which can be burdensome when there is a lot of them. The attached path adds the "[Reporter]" option to the list of available users like on the bug view page.

Tagspatch
Attached Files
bug_change_status_page.php.patch (709 bytes)   
--- bug_change_status_page.php	Sun Jul 12 04:03:34 2009
+++ bug_change_status_page.php	Thu Sep 17 16:44:18 2009
@@ -164,7 +164,13 @@
 	<td>
 		<select name="handler_id">
 			<option value="0"></option>
-			<?php print_assign_to_option_list( $t_bug->handler_id, $t_bug->project_id ) ?>
+			<?php 
+				if ( ( $t_handler_id != $t_reporter_id ) && user_exists( $t_reporter_id ) &&
+					( access_has_bug_level( config_get( 'handle_bug_threshold' ), $f_bug_id, $t_reporter_id ) ) ) {
+					?><option value="<?php echo $t_reporter_id; ?>">[<?php echo lang_get( 'reporter' ); ?>]</option><?php
+				}
+				print_assign_to_option_list( $t_bug->handler_id, $t_bug->project_id ) 
+			?>
 		</select>
 	</td>
 </tr>

Relationships

related to 0015788 feedback request for change Assign collection of bugs to Reporter 

Activities

vboctor

vboctor

2009-09-21 23:55

manager   ~0022999

Here are my comments on the patch:

  1. Shouldn't this also be added to the AssignTo drop down on the bug view page?
  2. It seems that the AssignTo drop down in the change status page is also missing "[myself]".
  3. It would be useful to have a print_assign_to_option_list method that takes in the bug id and handles all the logic to handle [myself] and [reporter].