extra selection when setting status to "in repair"
Moderators: Developer, Contributor
extra selection when setting status to "in repair"
When you set the staus to resolved, you get the option of choosing what the resolution is. I just created the status "in repair". I want to be able to select the $g_projection_enum_string and the $g_eta_enum_string when I set it to this status. Where can I do this ?
damn :( I don't mind editing code though.....just have to know where.....trying to follow the resolved/resolution is not to be done....to much integrated unfortunately.....
But when you can set the ETA and projection in the update_bug, why can it now be easely added to the change_status page? (apart from the fact that it only can be shown when it will be set to "in_repair".
The scentence I only have to change in order to show it when going to the status in_repair is the following:
if ( ( $t_resolved <= $f_new_status ) && ( ( CLOSED > $f_new_status ) || ( in_array( $t_current_resolution, array( OPEN, REOPENED ) ) ) ) ) { ?>
problem is t_resolved is all over the place....I cannot simply be edited to t_in_repair....
But when you can set the ETA and projection in the update_bug, why can it now be easely added to the change_status page? (apart from the fact that it only can be shown when it will be set to "in_repair".
The scentence I only have to change in order to show it when going to the status in_repair is the following:
if ( ( $t_resolved <= $f_new_status ) && ( ( CLOSED > $f_new_status ) || ( in_array( $t_current_resolution, array( OPEN, REOPENED ) ) ) ) ) { ?>
problem is t_resolved is all over the place....I cannot simply be edited to t_in_repair....
You will need to transplant some of the code from bug_update.php into bug_change_status page. Roughly:
Code: Select all
if ( IN_REPAIR == $f_new_status ) {
?>
<tr <?php echo helper_alternate_class() ?>>
<!-- ETA -->
<td class="category">
<!-- Fixed in Version -->
<?php echo lang_get( 'eta' ) ?>
</td>
<td>
<select name="eta">
<?php print_enum_string_option_list( 'eta', $t_bug->eta ) ?>
</select>
</td>
</tr>
<?php