View Issue Details

IDProjectCategoryView StatusLast Update
0001649mantisbtbugtrackerpublic2004-02-29 07:18
ReporterNiCKEL Assigned Tovboctor  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Summary0001649: Replace 'Assign to Me' with 'Assign To:' and dropdown of developers
Description

If you are looking at a bug which is already assigned to the current user, the "Assign to Me" button could be replace with a button marked "Assign To:" and a drop down of the valid developers for this project.

TagsNo tags attached.

Activities

rcrespo

rcrespo

2002-03-06 12:28

reporter   ~0002078

Last edited: 2002-03-12 09:34

this is a great idea .. most of the times i have to update the bug just to assign it to a developer.

Apparently, I found another bug.... I shouldn't have been able to edit this bugnote. :)
-NiCKEL

edited on: 03-12 09:34

NiCKEL

NiCKEL

2002-03-06 12:34

reporter   ~0002079

Diff from mantis-0.17.0

File: bug_assign.php
26c26,30
< $t_handler_id = get_current_user_field( "id" );

if (isset($f_handler_id))
  $t_handler_id = $f_handler_id;
else
  $t_handler_id = get_current_user_field( "id" );

File: view_bug_advanced_page.php
333a334,335

<?php $t_user_id = get_current_user_field ( "id" ); ?>
<?php if ($t_user_id != $v_handler_id) { ?>
341a344,356
<form method="post" action="<?php echo $g_bug_assign ?>">
<input type="hidden" name="f_date_submitted" value="<?php echo $v_date_submitted ?>">
<input type="hidden" name="f_id" value="<?php echo $f_id ?>">
<td class="center">
<input type="submit" value="<?php echo "Assign: " ?>">
<select name="f_handler_id">
<option value="0"></option>
<?php print_assign_to_option_list( $v_handler_id ) ?>
</select>
</td>
</form>
<?php } ?>
<?php } else { ?>

Probably want to add a config variable for the button name but otherwise I think this is fairly complete. The f_handler_id variable isn't validated, I didn't look hard enough to see if you generally check it.

NiCKEL

NiCKEL

2002-03-06 13:01

reporter   ~0002080

Forgot simple view (I only use advanced). As a side note, I do indent but it apparently doesn't paste well into bugnotes :)

File: view_bug_page.php
234a235,236

<?php $t_user_id = get_current_user_field ( "id" ); ?>
<?php if ($t_user_id != $v_handler_id) { ?>
242a245,257
<form method="post" action="<?php echo $g_bug_assign ?>">
<input type="hidden" name="f_date_submitted" value="<?php echo $v_date_submitted ?>">
<input type="hidden" name="f_id" value="<?php echo $f_id ?>">
<td class="center">
<input type="submit" value="<?php echo "Assign: " ?>">
<select name="f_handler_id">
<option value="0"></option>
<?php print_assign_to_option_list( $v_handler_id ) ?>
</select>
</td>
</form>
<?php } ?>
<?php } else { ?>

rufinus

rufinus

2002-03-08 12:37

reporter   ~0002089

@Nickel:
If you are Using Mozilla this is a known problem on bugzilla, i heard in a actuall nightybuild this problem is fixed.

vboctor

vboctor

2004-02-11 17:09

manager   ~0005022

Following is what is now implemented in CVS:

  • Assign to me is gone.
  • There is Assign To: combo-box-of-developers instead.
  • The lists include: Myself, Reporter, empty (for unassigning), and then the list of developers.

Will be included in next release.