Skip to content

Commit a5c5e57

Browse files
committedDec 6, 2011
Fixes #12199: Cannot add 'eta' to bug_report_page_fields
1 parent 1a73c89 commit a5c5e57

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
 

‎bug_report_page.php

+19
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126

127127
$f_category_id = $t_bug->category_id;
128128
$f_reproducibility = $t_bug->reproducibility;
129+
$f_eta = $t_bug->eta;
129130
$f_severity = $t_bug->severity;
130131
$f_priority = $t_bug->priority;
131132
$f_summary = $t_bug->summary;
@@ -150,6 +151,7 @@
150151

151152
$f_category_id = gpc_get_int( 'category_id', 0 );
152153
$f_reproducibility = gpc_get_int( 'reproducibility', config_get( 'default_bug_reproducibility' ) );
154+
$f_eta = gpc_get_int( 'eta', config_get( 'default_bug_eta' ) );
153155
$f_severity = gpc_get_int( 'severity', config_get( 'default_bug_severity' ) );
154156
$f_priority = gpc_get_int( 'priority', config_get( 'default_bug_priority' ) );
155157
$f_summary = gpc_get_string( 'summary', '' );
@@ -177,6 +179,7 @@
177179

178180
$tpl_show_category = in_array( 'category_id', $t_fields );
179181
$tpl_show_reproducibility = in_array( 'reproducibility', $t_fields );
182+
$tpl_show_eta = in_array( 'eta', $t_fields );
180183
$tpl_show_severity = in_array( 'severity', $t_fields );
181184
$tpl_show_priority = in_array( 'priority', $t_fields );
182185
$tpl_show_steps_to_reproduce = in_array( 'steps_to_reproduce', $t_fields );
@@ -264,6 +267,22 @@
264267
<?php
265268
}
266269

270+
if ( $tpl_show_eta ) {
271+
?>
272+
273+
<tr <?php echo helper_alternate_class() ?>>
274+
<th class="category">
275+
<label for="eta"><?php print_documentation_link( 'eta' ) ?></label>
276+
</th>
277+
<td>
278+
<select <?php echo helper_get_tab_index() ?> id="eta" name="eta">
279+
<?php print_enum_string_option_list( 'eta', $f_eta ) ?>
280+
</select>
281+
</td>
282+
</tr>
283+
<?php
284+
}
285+
267286
if ( $tpl_show_severity ) {
268287
?>
269288
<tr <?php echo helper_alternate_class() ?>>

0 commit comments

Comments
 (0)
Please sign in to comment.