summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug/process
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default/bug/process')
-rw-r--r--template/en/default/bug/process/header.html.tmpl6
-rw-r--r--template/en/default/bug/process/midair.html.tmpl20
-rw-r--r--template/en/default/bug/process/verify-new-product.html.tmpl13
3 files changed, 18 insertions, 21 deletions
diff --git a/template/en/default/bug/process/header.html.tmpl b/template/en/default/bug/process/header.html.tmpl
index 55de0c324..b95e1dcd3 100644
--- a/template/en/default/bug/process/header.html.tmpl
+++ b/template/en/default/bug/process/header.html.tmpl
@@ -10,13 +10,11 @@
# As global/header.html.tmpl.
#%]
-[% USE Bugzilla %]
-
[% PROCESS "bug/show-header.html.tmpl" %]
-[% IF title_tag == "bug_processed" %]
+[% IF title_tag == "bug_processed" %]
[% title = BLOCK %]
- [% IF Bugzilla.cgi.param('id') %]
+ [% IF cgi_param('id') %]
[%+ id FILTER html %]
[% ELSE %]
[% terms.Bugs %]
diff --git a/template/en/default/bug/process/midair.html.tmpl b/template/en/default/bug/process/midair.html.tmpl
index f89590df2..ca7e095c1 100644
--- a/template/en/default/bug/process/midair.html.tmpl
+++ b/template/en/default/bug/process/midair.html.tmpl
@@ -15,10 +15,6 @@
# bug: Bugzilla::Bug; the bug being changed.
#%]
-[%# The global Bugzilla->cgi object is used to obtain form variable values. %]
-[% USE Bugzilla %]
-[% cgi = Bugzilla.cgi %]
-
[% UNLESS header_done %]
[% PROCESS bug/process/header.html.tmpl %]
[% END %]
@@ -45,11 +41,11 @@
</p>
[% END %]
-[% IF cgi.param("comment") %]
+[% IF cgi_param("comment") %]
<p>
Your comment was:<br>
<blockquote><pre class="bz_comment_text">
- [% cgi.param("comment") FILTER html %]
+ [% cgi_param("comment") FILTER html %]
</pre></blockquote>
</p>
[% END %]
@@ -70,16 +66,16 @@ You have the following choices:
[% ", except for the added comment(s)" IF comments.size %].
</form>
</li>
- [% IF cgi.param("comment") %]
+ [% IF cgi_param("comment") %]
<li>
<form method="post" action="process_bug.cgi">
- <input type="hidden" name="id" value="[% cgi.param("id") FILTER html %]">
+ <input type="hidden" name="id" value="[% cgi_param("id") FILTER html %]">
<input type="hidden" name="delta_ts" value="[% bug.delta_ts FILTER html %]">
- <input type="hidden" name="comment" value="[% cgi.param("comment") FILTER html %]">
- <input type="hidden" name="use_markdown" value="[% cgi.param("use_markdown") FILTER html %]">
+ <input type="hidden" name="comment" value="[% cgi_param("comment") FILTER html %]">
+ <input type="hidden" name="use_markdown" value="[% cgi_param("use_markdown") FILTER html %]">
<input type="hidden" name="comment_is_private"
- value="[% cgi.param("comment_is_private") FILTER html %]">
- <input type="hidden" name="token" value="[% cgi.param("token") FILTER html %]">
+ value="[% cgi_param("comment_is_private") FILTER html %]">
+ <input type="hidden" name="token" value="[% cgi_param("token") FILTER html %]">
<input type="submit" id="process_comment" value="Submit only my new comment">
</form>
</li>
diff --git a/template/en/default/bug/process/verify-new-product.html.tmpl b/template/en/default/bug/process/verify-new-product.html.tmpl
index c562bf54d..837a9836f 100644
--- a/template/en/default/bug/process/verify-new-product.html.tmpl
+++ b/template/en/default/bug/process/verify-new-product.html.tmpl
@@ -17,6 +17,9 @@
# verify_bug_groups: If groups need to be confirmed in addition to fields.
#%]
+[% USE Bugzilla %]
+[% cgi = Bugzilla.cgi %]
+
[% PROCESS global/header.html.tmpl
title = 'Verify New Product Details...'
style_urls = ['skins/standard/buglist.css']
@@ -165,14 +168,14 @@
<input type="checkbox" name="defined_groups"
id="defined_group_[% group.group.id FILTER html %]"
value="[% group.group.name FILTER html %]"
- [% IF cgi.param("defined_groups").contains(group.group.name) %] checked="checked"[% END %]
+ [% IF cgi.multi_param("defined_groups").contains(group.group.name) %] checked="checked"[% END %]
onchange="turn_off(this, 'group_[% group.group.id FILTER html %]')">
</td>
<td class="center">
<input type="checkbox" name="groups"
id="group_[% group.group.id FILTER html %]"
value="[% group.group.name FILTER html %]"
- [% IF cgi.param("groups").contains(group.group.name) %] checked="checked"[% END %]
+ [% IF cgi.multi_param("groups").contains(group.group.name) %] checked="checked"[% END %]
onchange="turn_off(this, 'defined_group_[% group.group.id FILTER html %]')">
</td>
<td>
@@ -189,7 +192,7 @@
name="groups"
[% ' checked="checked"' IF ((group.membercontrol == constants.CONTROLMAPDEFAULT && user.in_group(group.group.name))
|| (group.othercontrol == constants.CONTROLMAPDEFAULT && !user.in_group(group.group.name))
- || cgi.param("groups").contains(group.group.name)) %]
+ || cgi.multi_param("groups").contains(group.group.name)) %]
value="[% group.group.name FILTER html %]">
<label for="group_[% group.group.id FILTER html %]">
[% group.group.name FILTER html %]: [% group.group.description FILTER html %]
@@ -224,8 +227,8 @@
[%# If 'id' is defined, then we are editing a single bug.
# Else we are editing several bugs at once. %]
-[% IF cgi.param('id') AND cgi.param('id').match('^\d+$') %]
- [% id = cgi.param('id') %]
+[% IF cgi_param('id') AND cgi_param('id').match('^\d+$') %]
+ [% id = cgi_param('id') %]
Cancel and Return to [% "$terms.bug $id" FILTER bug_link(id) FILTER none %]
[% ELSE %]
Cancel and Return to <a href="buglist.cgi?regetlastlist=1">the last search results</a>