extra selection when setting status to "in repair"

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Reinder
Posts: 119
Joined: 26 Apr 2005, 11:08

extra selection when setting status to "in repair"

Post by Reinder »

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 ?
thraxisp
Developer
Posts: 509
Joined: 14 Feb 2005, 03:38
Location: Ottawa, Canada
Contact:

Post by thraxisp »

Currently, you can't without editting code. This should be coming in 1.1 (hopefully).
Reinder
Posts: 119
Joined: 26 Apr 2005, 11:08

Post by Reinder »

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....
Reinder
Posts: 119
Joined: 26 Apr 2005, 11:08

Post by Reinder »

again 1 step closer, I now see that t_resolved is defined as:

$t_resolved = config_get( 'bug_resolved_status_threshold' );

so how do i config_get the status of eta ? and can it be done or does too many code have to be changed..........?
thraxisp
Developer
Posts: 509
Joined: 14 Feb 2005, 03:38
Location: Ottawa, Canada
Contact:

Post by thraxisp »

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
Reinder
Posts: 119
Joined: 26 Apr 2005, 11:08

Post by Reinder »

yesss....tnx !! that was the solution I was waiting for ! :) many tnx !!
Post Reply