|
|
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 |
|
|
|
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. |
|
|
|
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 { ?>
|
|
|
|
@Nickel:
If you are Using Mozilla this is a known problem on bugzilla, i heard in a actuall nightybuild this problem is fixed. |
|
|
|
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. |
|