1 |
commit: 285857e7c7800290963d901fa443d02d0bb9ad15 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 30 09:06:40 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 30 09:06:40 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gentoo-bugzilla.git/commit/?id=285857e7 |
7 |
|
8 |
Try hiding 'version' field |
9 |
|
10 |
Bug: https://bugs.gentoo.org/620048 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
template/en/default/bug/create/create.html.tmpl | 17 ++--------------- |
14 |
template/en/default/bug/edit.html.tmpl | 7 ------- |
15 |
template/en/default/bug/field-help.none.tmpl | 4 ---- |
16 |
.../en/default/bug/process/verify-new-product.html.tmpl | 13 ------------- |
17 |
template/en/default/list/edit-multiple.html.tmpl | 7 ------- |
18 |
5 files changed, 2 insertions(+), 46 deletions(-) |
19 |
|
20 |
diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl |
21 |
index 3e25e9c29..e7f2b2aed 100644 |
22 |
--- a/template/en/default/bug/create/create.html.tmpl |
23 |
+++ b/template/en/default/bug/create/create.html.tmpl |
24 |
@@ -82,6 +82,8 @@ TUI_hide_default('attachment_text_field'); |
25 |
onsubmit="return validateEnterBug(this)"> |
26 |
<input type="hidden" name="product" value="[% product.name FILTER html %]"> |
27 |
<input type="hidden" name="token" value="[% token FILTER html %]"> |
28 |
+<input type="hidden" name="version" |
29 |
+ value="[% default.version FILTER html %]"> |
30 |
|
31 |
<table> |
32 |
<tbody> |
33 |
@@ -184,21 +186,6 @@ TUI_hide_default('attachment_text_field'); |
34 |
</tr> |
35 |
|
36 |
<tr> |
37 |
- [% INCLUDE "bug/field-label.html.tmpl" |
38 |
- field = bug_fields.version editable = 1 rowspan = 4 |
39 |
- %] |
40 |
- <td rowspan="4"> |
41 |
- <select name="version" id="version" size="5" aria-required="true" |
42 |
- class="required"> |
43 |
- [%- FOREACH v = version %] |
44 |
- [% NEXT IF NOT v.is_active %] |
45 |
- <option value="[% v.name FILTER html %]" |
46 |
- [% ' selected="selected"' IF v.name == default.version %]>[% v.name FILTER html -%] |
47 |
- </option> |
48 |
- [%- END %] |
49 |
- </select> |
50 |
- </td> |
51 |
- |
52 |
[% INCLUDE bug/field.html.tmpl |
53 |
bug = default, field = bug_fields.bug_severity, editable = 1, |
54 |
value = default.bug_severity %] |
55 |
|
56 |
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl |
57 |
index 29387b301..dcadb89d1 100644 |
58 |
--- a/template/en/default/bug/edit.html.tmpl |
59 |
+++ b/template/en/default/bug/edit.html.tmpl |
60 |
@@ -260,13 +260,6 @@ |
61 |
editable = bug.check_can_change_field('component', 0, 1) |
62 |
%] |
63 |
</tr> |
64 |
- <tr> |
65 |
- [% INCLUDE "bug/field-label.html.tmpl" |
66 |
- field = bug_fields.version |
67 |
- editable = bug.check_can_change_field('version', 0, 1) %] |
68 |
- |
69 |
- [% PROCESS select selname => "version" %] |
70 |
- </tr> |
71 |
[%############%] |
72 |
[%# PLATFORM #%] |
73 |
[%############%] |
74 |
|
75 |
diff --git a/template/en/default/bug/field-help.none.tmpl b/template/en/default/bug/field-help.none.tmpl |
76 |
index 2b6096547..af6c6ac96 100644 |
77 |
--- a/template/en/default/bug/field-help.none.tmpl |
78 |
+++ b/template/en/default/bug/field-help.none.tmpl |
79 |
@@ -152,10 +152,6 @@ target_milestone => |
80 |
"The $vars.field_descs.target_milestone field is used to define when the" |
81 |
_ " engineer the $terms.bug is assigned to expects to fix it.", |
82 |
|
83 |
-version => |
84 |
- "The version field defines the version of the software the" |
85 |
- _ " $terms.bug was found in.", |
86 |
- |
87 |
votes => |
88 |
"Some $terms.bugs can be voted for, and you can limit your search to" |
89 |
_ " $terms.bugs with more than a certain number of votes.", |
90 |
|
91 |
diff --git a/template/en/default/bug/process/verify-new-product.html.tmpl b/template/en/default/bug/process/verify-new-product.html.tmpl |
92 |
index c562bf54d..affd6b674 100644 |
93 |
--- a/template/en/default/bug/process/verify-new-product.html.tmpl |
94 |
+++ b/template/en/default/bug/process/verify-new-product.html.tmpl |
95 |
@@ -59,19 +59,6 @@ |
96 |
|
97 |
<table> |
98 |
<tr> |
99 |
- <td> |
100 |
- <b>Version:</b><br> |
101 |
- [% IF versions.size == 1 %] |
102 |
- [% SET default_version = versions.0 %] |
103 |
- [% ELSE %] |
104 |
- [% SET default_version = defaults.version %] |
105 |
- [% END %] |
106 |
- [% PROCESS "global/select-menu.html.tmpl" |
107 |
- name="version" |
108 |
- options=versions |
109 |
- default=default_version |
110 |
- size=10 %] |
111 |
- </td> |
112 |
<td> |
113 |
<b>Component:</b><br> |
114 |
[% IF components.size == 1 %] |
115 |
|
116 |
diff --git a/template/en/default/list/edit-multiple.html.tmpl b/template/en/default/list/edit-multiple.html.tmpl |
117 |
index e581f0892..878f9954b 100644 |
118 |
--- a/template/en/default/list/edit-multiple.html.tmpl |
119 |
+++ b/template/en/default/list/edit-multiple.html.tmpl |
120 |
@@ -61,13 +61,6 @@ |
121 |
%] |
122 |
</td> |
123 |
|
124 |
- <th><label for="version">Version:</label></th> |
125 |
- <td> |
126 |
- [% PROCESS selectmenu menuname = "version" |
127 |
- menuitems = versions |
128 |
- property = "" %] |
129 |
- </td> |
130 |
- |
131 |
</tr> |
132 |
<tr> |