summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2014-02-25 21:35:00 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2014-02-25 21:35:00 +0100
commitdee2aa7187553971fb549be116d51c7ff69ee607 (patch)
treebb57dea6e1265d73a358dcabefaf3f695f84707c /template/en/default
parent017ef4f703815614905bfb39873dae2dce2390d9 (diff)
downloadbugzilla-dee2aa7187553971fb549be116d51c7ff69ee607.tar.gz
bugzilla-dee2aa7187553971fb549be116d51c7ff69ee607.tar.xz
Bug 967883: modify_keywords() shouldn't throw an error when an unprivileged user doesn't alter the keywords list
r=gerv a=justdave
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/global/user-error.html.tmpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl
index 29e3bf83f..d7648320c 100644
--- a/template/en/default/global/user-error.html.tmpl
+++ b/template/en/default/global/user-error.html.tmpl
@@ -872,13 +872,13 @@
[% title = "Not allowed" %]
You tried to change the
<strong>[% field_descs.$field FILTER html %]</strong> field
- [% IF oldvalue.defined %]
+ [% IF oldvalue.defined AND oldvalue != "" %]
from <em>[% oldvalue.join(', ') FILTER html %]</em>
[% END %]
- [% IF newvalue.defined %]
+ [% IF newvalue.defined AND newvalue != "" %]
to <em>[% newvalue.join(', ') FILTER html %]</em>
- [% END %]
- , but only
+ [% END %],
+ but only
[% IF privs < constants.PRIVILEGES_REQUIRED_EMPOWERED %]
the assignee
[% IF privs < constants.PRIVILEGES_REQUIRED_ASSIGNEE %] or reporter [% END %]