Permission to change "Assign To" when i change to

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
mbelley
Posts: 6
Joined: 14 Mar 2006, 19:18

Permission to change "Assign To" when i change to

Post by mbelley »

Here is code from "bug_change_status_page.php" file on line 135
i changed condition "if ( ( $t_resolved > $f_new_status )" for "if ( ( $t_resolved >= $f_new_status )". This code update give developer acces to change "Assign To" user when changing Issue Status to RESOLVED. Thos it have a better way to do that in "custom_functions"? Or will it be possible to add this customization possibilities in "config_inc.php"


<?php
//if ( ( $t_resolved > $f_new_status ) && //Original value
if ( ( $t_resolved >= $f_new_status ) && //My value
access_has_bug_level( config_get( 'update_bug_assign_threshold', config_get( 'update_bug_threshold')), $f_bug_id) ) { ?>
<!-- Assigned To -->
<tr <?php echo helper_alternate_class() ?>>
<td class="category">
<?php echo lang_get( 'assigned_to' ) ?>
</td>
<td>
<select name="handler_id">
<option value="0"></option>
<?php print_assign_to_option_list( $t_bug->handler_id, $t_bug->project_id ) ?>
</select>
</td>
</tr>
<?php } ?>
mbelley
Post Reply