summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-01-18 03:41:44 +0100
committermkanat%bugzilla.org <>2008-01-18 03:41:44 +0100
commit620caf6860a86bf0f54918e8514c14d7cec5f2cc (patch)
treece5a8abe5895d7d3a1761ba7a529f856fc4cdb08 /template
parentf39fc76d9cd52a0e045dc8071d422348bc5c359b (diff)
downloadbugzilla-620caf6860a86bf0f54918e8514c14d7cec5f2cc.tar.gz
bugzilla-620caf6860a86bf0f54918e8514c14d7cec5f2cc.tar.xz
Bug 402791: Move status and resolution updating from process_bug.cgi into Bugzilla::Bug
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'template')
-rw-r--r--template/en/default/global/code-error.html.tmpl4
-rw-r--r--template/en/default/global/user-error.html.tmpl37
2 files changed, 29 insertions, 12 deletions
diff --git a/template/en/default/global/code-error.html.tmpl b/template/en/default/global/code-error.html.tmpl
index dce7947d6..1e5581e13 100644
--- a/template/en/default/global/code-error.html.tmpl
+++ b/template/en/default/global/code-error.html.tmpl
@@ -309,6 +309,10 @@
[% ELSIF error == "need_quipid" %]
A valid quipid is needed.
+ [% ELSIF error == "no_manual_moved" %]
+ You cannot set the resolution of [% terms.abug %] to MOVED without
+ moving the [% terms.bug %].
+
[% ELSIF error == "param_must_be_numeric" %]
[% title = "Invalid Parameter" %]
Invalid parameter passed to [% function FILTER html %].
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl
index 7bce4ad98..ca9bf0cdb 100644
--- a/template/en/default/global/user-error.html.tmpl
+++ b/template/en/default/global/user-error.html.tmpl
@@ -252,14 +252,15 @@
[% ELSIF error == "comment_required" %]
[% title = "Comment Required" %]
- You have to specify a <b>comment</b>
- [% IF old.size && new %]
- to change the [% terms.bug %] status from [% old.join(", ") FILTER html %]
- to [% new FILTER html %].
+ You have to specify a
+ [% IF old && new %]
+ <b>comment</b> when changing the status of [% terms.abug %] from
+ [%+ old.name FILTER html %] to [% new.name FILTER html %].
+ [% ELSIF new %]
+ description for this [% terms.bug %].
[% ELSE %]
- on this change.
+ <b>comment</b> on this change.
[% END %]
- Please explain your change.
[% ELSIF error == "comment_too_long" %]
[% title = "Comment Too Long" %]
@@ -346,9 +347,10 @@
[% title = "Dependency Loop Detected" %]
You can't make [% terms.abug %] block itself or depend on itself.
- [% ELSIF error == "description_required" %]
- [% title = "Description Required" %]
- You must provide a description of the [% terms.bug %].
+ [% ELSIF error == "dupe_id_required" %]
+ [% title = "Duplicate Bug Id Required" %]
+ You must specify [% terms.abug %] id to mark this [% terms.bug %]
+ as a duplicate of.
[% ELSIF error == "dupe_not_allowed" %]
[% title = "Cannot mark $terms.bugs as duplicates" %]
@@ -679,8 +681,13 @@
[% ELSIF error == "illegal_bug_status_transition" %]
[% title = "Illegal $terms.Bug Status Change" %]
- You are not allowed to change the [% terms.bug %] status from
- [%+ old FILTER html %] to [% new FILTER html %].
+ [% IF old.defined %]
+ You are not allowed to change the [% terms.bug %] status from
+ [%+ old.name FILTER html %] to [% new.name FILTER html %].
+ [% ELSE %]
+ You are not allowed to file new [% terms.bugs %] with the
+ [%+ new.name FILTER html %] status.
+ [% END %]
[% ELSIF error == "illegal_change" %]
[% title = "Not allowed" %]
@@ -940,7 +947,7 @@
[% ELSIF error == "milestone_required" %]
[% title = "Milestone Required" %]
You must determine a target milestone for [% terms.bug %]
- [%+ bug_id FILTER html %]
+ [%+ bug.id FILTER html %]
if you are going to accept it. Part of accepting
[%+ terms.abug %] is giving an estimate of when it will be fixed.
@@ -1379,6 +1386,10 @@
[% title = "Summary Needed" %]
You must enter a summary for this [% terms.bug %].
+ [% ELSIF error == "resolution_cant_clear" %]
+ [% terms.Bug %] [% bug_id FILTER bug_link(bug_id) FILTER none %] is
+ closed, so you cannot clear its resolution.
+
[% ELSIF error == "resolution_not_allowed" %]
[% title = "Resolution Not Allowed" %]
You cannot set a resolution for open [% terms.bugs %].
@@ -1659,5 +1670,7 @@
version
[% ELSIF class == "Bugzilla::Milestone" %]
milestone
+ [% ELSIF class == "Bugzilla::Status" %]
+ status
[% END %]
[% END %]