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/list/edit-multiple.html.tmpl | 76 +++++++----------------- 1 file changed, 23 insertions(+), 53 deletions(-) (limited to 'template/en/default/list/edit-multiple.html.tmpl') diff --git a/template/en/default/list/edit-multiple.html.tmpl b/template/en/default/list/edit-multiple.html.tmpl index 668445995..28e513e7b 100644 --- a/template/en/default/list/edit-multiple.html.tmpl +++ b/template/en/default/list/edit-multiple.html.tmpl @@ -18,6 +18,7 @@ # # Contributor(s): Myk Melez # Max Kanat-Alexander + # Frédéric Buclin #%] [% PROCESS global/variables.none.tmpl %] @@ -301,66 +302,25 @@ -[% knum = 0 %]
-[% IF bugstatuses.size == 1 && bugstatuses.0 == unconfirmedstate %] - [% knum = knum + 1 %] - -
+[% FOREACH bug_status = new_bug_statuses %] + + + [% IF !bug_status.is_open %] + and set the resolution to [% PROCESS select_resolution field = "knob_${bug_status.id}" %] + [% END %] +
[% END %] -[%# If all the bugs being changed are open, allow the user to accept them, - clear their resolution or resolve them. %] -[% IF !bugstatuses.containsany(closedstates) %] - [% knum = knum + 1 %] - -
- - [% knum = knum + 1 %] +[%# If all the bugs being changed are open, allow the user to clear their resolution. %] +[% IF !current_bug_statuses.containsany(closedstates) %]
- - [% knum = knum + 1 %] - - -
- -[% END %] - -[%# If all the bugs are closed, allow the user to reopen them. %] -[% IF !bugstatuses.containsany(openstates) %] - [% knum = knum + 1 %] - -
-[% END %] - -[% IF bugstatuses.size == 1 %] - [% IF bugstatuses.contains('RESOLVED') %] - [% knum = knum + 1 %] - -
- [% END %] -[% END %] - -[% IF !bugstatuses.containsany(openstates) AND !bugstatuses.contains('CLOSED') %] - [% knum = knum + 1 %] - -
[% END %] @@ -384,3 +344,13 @@ [% END %] [% END %] + +[% BLOCK select_resolution %] + +[% END %] -- cgit v1.2.3-24-g4f1b