From 737535fcbcfd91d7c15eab2f43386333af113797 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 28 Jul 2007 05:54:36 +0000 Subject: Bug 389835: Various issues when changing several bugs at once - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/list/edit-multiple.html.tmpl | 31 +++++++++++++++++++----- 1 file changed, 25 insertions(+), 6 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 28e513e7b..0fd206797 100644 --- a/template/en/default/list/edit-multiple.html.tmpl +++ b/template/en/default/list/edit-multiple.html.tmpl @@ -300,7 +300,9 @@ [% END %] - +[% all_open_bugs = !current_bug_statuses.containsany(closedstates) %] +[% all_closed_bugs = !current_bug_statuses.containsany(openstates) %] +[% display_warning = 0 %]
@@ -311,18 +313,35 @@ - [% IF !bug_status.is_open %] - and set the resolution to [% PROCESS select_resolution field = "knob_${bug_status.id}" %] + [%# Closed bugs cannot have their resolution changed this way. %] + [% IF !bug_status.is_open && !all_closed_bugs %] + and set the resolution to [% PROCESS select_resolution id = bug_status.id %] + [%+ "(*)" UNLESS all_open_bugs %] + [% display_warning = 1 UNLESS all_open_bugs %] [% END %]
[% END %] [%# If all the bugs being changed are open, allow the user to clear their resolution. %] -[% IF !current_bug_statuses.containsany(closedstates) %] +[% IF all_open_bugs %]
[% END %] +[%# If all the bugs being changed are closed, allow the user to change their resolution. %] +[% IF all_closed_bugs %] + + + [%+ PROCESS select_resolution id = "change_resolution" %]
+[% END %] + +[% IF display_warning %] +

+ (*) Note that the resolution will only be applied to open [% terms.bugs %]. + Already closed [% terms.bugs %] will keep their resolution unchanged. +

+[% END %] + [% IF Param('move-enabled') && user.is_mover %] @@ -346,8 +365,8 @@ [% END %] [% BLOCK select_resolution %] - [% FOREACH r = resolutions %] [% NEXT IF !r %] -- cgit v1.2.3-24-g4f1b