summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-10-03 08:53:06 +0200
committermkanat%bugzilla.org <>2008-10-03 08:53:06 +0200
commit4b781a339951b8a4e60e3615bf879b339e4574fd (patch)
tree10ad4f08408e8435fc7025c73527f2ded518bb91 /template
parent79cd8e829cd0821368bc7163cba647b8c97fa800 (diff)
downloadbugzilla-4b781a339951b8a4e60e3615bf879b339e4574fd.tar.gz
bugzilla-4b781a339951b8a4e60e3615bf879b339e4574fd.tar.xz
Bug 452896: A user with no privs who reported a bug couldn't move it to another product if the target milestone was set
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat
Diffstat (limited to 'template')
-rw-r--r--template/en/default/bug/process/verify-new-product.html.tmpl13
1 files changed, 10 insertions, 3 deletions
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 7b5b58a18..2eeb9277e 100644
--- a/template/en/default/bug/process/verify-new-product.html.tmpl
+++ b/template/en/default/bug/process/verify-new-product.html.tmpl
@@ -49,10 +49,15 @@
<input type="hidden" name="confirm_product_change" value="1">
[%# Verify the version, component, and target milestone fields. %]
-<h3>Verify Version, Component[% ", Target Milestone" IF Param("usetargetmilestone") %]</h3>
+<h3>Verify Version, Component
+ [%- ", Target Milestone"
+ IF Param("usetargetmilestone")
+ && bug.check_can_change_field('target_milestone', 0, 1) %]</h3>
<p>
-[% IF Param("usetargetmilestone") %]
+[% IF Param("usetargetmilestone")
+ && bug.check_can_change_field('target_milestone', 0, 1)
+%]
You are moving the [% terms.bug %](s) to the product
<b>[% product.name FILTER html %]</b>,
and the version, component, and/or target milestone fields are no longer
@@ -93,7 +98,9 @@
default=default_component
size=10 %]
</td>
- [% IF Param("usetargetmilestone") %]
+ [% IF Param("usetargetmilestone")
+ && bug.check_can_change_field('target_milestone', 0, 1)
+ %]
<td>
<b>Target Milestone:</b><br>
[% PROCESS "global/select-menu.html.tmpl"