From dee2aa7187553971fb549be116d51c7ff69ee607 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Tue, 25 Feb 2014 21:35:00 +0100 Subject: Bug 967883: modify_keywords() shouldn't throw an error when an unprivileged user doesn't alter the keywords list r=gerv a=justdave --- template/en/default/global/user-error.html.tmpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'template/en/default/global/user-error.html.tmpl') 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 [% field_descs.$field FILTER html %] field - [% IF oldvalue.defined %] + [% IF oldvalue.defined AND oldvalue != "" %] from [% oldvalue.join(', ') FILTER html %] [% END %] - [% IF newvalue.defined %] + [% IF newvalue.defined AND newvalue != "" %] to [% newvalue.join(', ') FILTER html %] - [% END %] - , but only + [% END %], + but only [% IF privs < constants.PRIVILEGES_REQUIRED_EMPOWERED %] the assignee [% IF privs < constants.PRIVILEGES_REQUIRED_ASSIGNEE %] or reporter [% END %] -- cgit v1.2.3-24-g4f1b