From 2bd57ce8e6f2c2bb59a99d825fc9d181ea2cb4a5 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 27 May 2007 03:27:45 +0000 Subject: Bug 344965: Fix process_bug.cgi and bug/* templates to work with custom bug status workflow - Patch by Frédéric Buclin r=mkanat a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/global/user-error.html.tmpl | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 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 485f7c403..615499426 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -243,7 +243,13 @@ [% ELSIF error == "comment_required" %] [% title = "Comment Required" %] - You have to specify a comment on this change. + You have to specify a comment + [% IF old.size && new %] + to change the [% terms.bug %] status from [% old.join(", ") FILTER html %] + to [% new FILTER html %]. + [% ELSE %] + on this change. + [% END %] Please explain your change. [% ELSIF error == "comment_too_long" %] @@ -633,7 +639,12 @@ [% title = "Your Search Makes No Sense" %] The only legal values for the Attachment is patch field are 0 and 1. - + + [% ELSIF error == "illegal_bug_status_transition" %] + [% title = "Illegal $terms.Bug Status Change" %] + You are not allowed to change the [% terms.bug %] status from + [%+ old.join(", ") FILTER html %] to [%+ new FILTER html %]. + [% ELSIF error == "illegal_change" %] [% title = "Not allowed" %] You tried to change the -- cgit v1.2.3-24-g4f1b