Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 65322c6

Browse files
committedDec 6, 2011
Fixes #12199: Cannot add 'eta' to bug_report_page_fields
1 parent f6a94a6 commit 65322c6

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
@@ -82,6 +82,7 @@
8282

8383
$f_category_id = $t_bug->category_id;
8484
$f_reproducibility = $t_bug->reproducibility;
85+
$f_eta = $t_bug->eta;
8586
$f_severity = $t_bug->severity;
8687
$f_priority = $t_bug->priority;
8788
$f_summary = $t_bug->summary;
@@ -106,6 +107,7 @@
106107

107108
$f_category_id = gpc_get_int( 'category_id', 0 );
108109
$f_reproducibility = gpc_get_int( 'reproducibility', config_get( 'default_bug_reproducibility' ) );
110+
$f_eta = gpc_get_int( 'eta', config_get( 'default_bug_eta' ) );
109111
$f_severity = gpc_get_int( 'severity', config_get( 'default_bug_severity' ) );
110112
$f_priority = gpc_get_int( 'priority', config_get( 'default_bug_priority' ) );
111113
$f_summary = gpc_get_string( 'summary', '' );
@@ -133,6 +135,7 @@
133135

134136
$tpl_show_category = in_array( 'category_id', $t_fields );
135137
$tpl_show_reproducibility = in_array( 'reproducibility', $t_fields );
138+
$tpl_show_eta = in_array( 'eta', $t_fields );
136139
$tpl_show_severity = in_array( 'severity', $t_fields );
137140
$tpl_show_priority = in_array( 'priority', $t_fields );
138141
$tpl_show_steps_to_reproduce = in_array( 'steps_to_reproduce', $t_fields );
@@ -207,7 +210,23 @@
207210
</tr>
208211
<?php
209212
}
213+
214+
if ( $tpl_show_eta ) {
215+
?>
210216

217+
<tr <?php echo helper_alternate_class() ?>>
218+
<td class="category">
219+
<label for="eta"><?php print_documentation_link( 'eta' ) ?></label>
220+
</td>
221+
<td>
222+
<select <?php echo helper_get_tab_index() ?> id="eta" name="eta">
223+
<?php print_enum_string_option_list( 'eta', $f_eta ) ?>
224+
</select>
225+
</td>
226+
</tr>
227+
<?php
228+
}
229+
211230
if ( $tpl_show_severity ) {
212231
?>
213232
<tr <?php echo helper_alternate_class() ?>>

0 commit comments

Comments
 (0)
Please sign in to comment.