Commit 6d010359 authored by travis%sedsystems.ca's avatar travis%sedsystems.ca

Bug 281574 : Combine version_/milestone_/component_no_action errors into one.

Patch by Shane H. W. Travis <travis@sedsystems.ca> r=LpSolit a=myk
parent 8a225c27
...@@ -671,4 +671,4 @@ if ($action eq 'update') { ...@@ -671,4 +671,4 @@ if ($action eq 'update') {
# #
# No valid action found # No valid action found
# #
ThrowUserError('component_no_action'); ThrowUserError('no_valid_action', {'field' => "component"});
...@@ -594,4 +594,4 @@ if ($action eq 'update') { ...@@ -594,4 +594,4 @@ if ($action eq 'update') {
# #
# No valid action found # No valid action found
# #
ThrowUserError('milestone_no_action'); ThrowUserError('no_valid_action', {'field' => "target_milestone"});
...@@ -446,4 +446,4 @@ if ($action eq 'update') { ...@@ -446,4 +446,4 @@ if ($action eq 'update') {
# #
# No valid action found # No valid action found
# #
ThrowUserError('version_no_action'); ThrowUserError('no_valid_action', {'field' => "version"});
...@@ -258,10 +258,6 @@ ...@@ -258,10 +258,6 @@
You must use an existing [% terms.Bugzilla %] account as initial QA contact for You must use an existing [% terms.Bugzilla %] account as initial QA contact for
component '[% name FILTER html %]'. component '[% name FILTER html %]'.
[% ELSIF error == "component_no_action" %]
[% title = "No valid action specified" %]
No valid action was specified when trying to edit components.
[% ELSIF error == "product_not_specified" %] [% ELSIF error == "product_not_specified" %]
[% title = "No Product Specified" %] [% title = "No Product Specified" %]
No product specified when trying to edit components, milestones or No product specified when trying to edit components, milestones or
...@@ -629,10 +625,6 @@ ...@@ -629,10 +625,6 @@
The name of a milestone is limited to 20 characters. The name of a milestone is limited to 20 characters.
'[% name FILTER html %]' is too long ([% name.length %] characters). '[% name FILTER html %]' is too long ([% name.length %] characters).
[% ELSIF error == "milestone_no_action" %]
[% title = "No valid action specified" %]
No valid action was specified when trying to edit milestones.
[% ELSIF error == "milestone_not_specified" %] [% ELSIF error == "milestone_not_specified" %]
[% title = "No Milestone Specified" %] [% title = "No Milestone Specified" %]
No milestone specified when trying to edit milestones. No milestone specified when trying to edit milestones.
...@@ -796,6 +788,10 @@ ...@@ -796,6 +788,10 @@
Either no products have been defined to enter [% terms.bugs %] against or you have not Either no products have been defined to enter [% terms.bugs %] against or you have not
been given access to any. been given access to any.
[% ELSIF error == "no_valid_action" %]
[% title = "No valid action specified" %]
Cannot edit [% field_descs.$field FILTER html %]: no valid action was specified.
[% ELSIF error == "number_not_numeric" %] [% ELSIF error == "number_not_numeric" %]
[% title = "Numeric Value Required" %] [% title = "Numeric Value Required" %]
The value '[% num FILTER html %]' in the The value '[% num FILTER html %]' in the
...@@ -985,10 +981,6 @@ ...@@ -985,10 +981,6 @@
The name of a version is limited to 20 characters. The name of a version is limited to 20 characters.
'[% name FILTER html %]' is too long ([% name.length %] characters). '[% name FILTER html %]' is too long ([% name.length %] characters).
[% ELSIF error == "version_no_action" %]
[% title = "No valid action specified" %]
No valid action was specified when trying to edit versions.
[% ELSIF error == "version_not_specified" %] [% ELSIF error == "version_not_specified" %]
[% title = "No Version Specified" %] [% title = "No Version Specified" %]
No version specified when trying to edit versions. No version specified when trying to edit versions.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment