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/admin/workflow/comment.html.tmpl | 8 ++++---- template/en/default/admin/workflow/edit.html.tmpl | 16 ++++++++++------ 2 files changed, 14 insertions(+), 10 deletions(-) (limited to 'template/en/default/admin/workflow') diff --git a/template/en/default/admin/workflow/comment.html.tmpl b/template/en/default/admin/workflow/comment.html.tmpl index 5e9a788d6..df9d5e872 100644 --- a/template/en/default/admin/workflow/comment.html.tmpl +++ b/template/en/default/admin/workflow/comment.html.tmpl @@ -50,24 +50,24 @@   [% FOREACH status = statuses %] - [% status.value FILTER html %] + [% status.name FILTER html %] [% END %] [%# This defines the entry point in the workflow %] - [% p = [{id => 0, value => "{Start}", is_open => 1}] %] + [% p = [{id => 0, name => "{Start}", is_open => 1}] %] [% FOREACH status = p.merge(statuses) %] - [% status.value FILTER html %] + [% status.name FILTER html %] [% FOREACH new_status = statuses %] [% IF workflow.${status.id}.${new_status.id}.defined %] + title="From [% status.name FILTER html %] to [% new_status.name FILTER html %]"> diff --git a/template/en/default/admin/workflow/edit.html.tmpl b/template/en/default/admin/workflow/edit.html.tmpl index dee71c0a1..d602171a1 100644 --- a/template/en/default/admin/workflow/edit.html.tmpl +++ b/template/en/default/admin/workflow/edit.html.tmpl @@ -34,8 +34,12 @@

- This page allows you to define which status transitions are valid - in your workflow. + This page allows you to define which status transitions are valid in your workflow. + For compatibility with older versions of [% terms.Bugzilla %], reopening [% terms.abug %] + will only display either UNCONFIRMED or REOPENED (if allowed by your workflow) but not + both. The decision depends on whether the [% terms.bug %] has ever been confirmed or not. + So it is a good idea to allow both transitions and let [% terms.Bugzilla %] select the + correct one.

@@ -50,24 +54,24 @@   [% FOREACH status = statuses %] - [% status.value FILTER html %] + [% status.name FILTER html %] [% END %] [%# This defines the entry point in the workflow %] - [% p = [{id => 0, value => "{Start}", is_open => 1}] %] + [% p = [{id => 0, name => "{Start}", is_open => 1}] %] [% FOREACH status = p.merge(statuses) %] - [% status.value FILTER html %] + [% status.name FILTER html %] [% FOREACH new_status = statuses %] [% IF status.id != new_status.id %] + title="From [% status.name FILTER html %] to [% new_status.name FILTER html %]"> -- cgit v1.2.3-24-g4f1b