summaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-01-05 00:15:28 +0100
committerlpsolit%gmail.com <>2009-01-05 00:15:28 +0100
commita8cc91bfe25645ff5d83d1732109533688872196 (patch)
tree830e43739ada756f5b43192a2af3ad50a6835271 /template/en
parent19d1f1c324a35bd44689cde98752275f518082e2 (diff)
downloadbugzilla-a8cc91bfe25645ff5d83d1732109533688872196.tar.gz
bugzilla-a8cc91bfe25645ff5d83d1732109533688872196.tar.xz
Bug 471866: Classification name length and sortkey max value not validated - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=LpSolit
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/global/user-error.html.tmpl11
1 files changed, 8 insertions, 3 deletions
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl
index b072d2bbd..191f6eebd 100644
--- a/template/en/default/global/user-error.html.tmpl
+++ b/template/en/default/global/user-error.html.tmpl
@@ -263,7 +263,12 @@
[% title = "Classification Not Enabled" %]
Sorry, classification is not enabled.
- [% ELSIF error == "classification_not_specified" %]
+ [% ELSIF error == "classification_name_too_long" %]
+ [% title = "Classification Name Too Long" %]
+ The name of a classification is limited to [% constants.MAX_CLASSIFICATION_SIZE FILTER html %]
+ characters. '[% name FILTER html %]' is too long ([% name.length %] characters).
+
+[% ELSIF error == "classification_not_specified" %]
[% title = "You Must Supply A Classification Name" %]
You must enter a classification name.
@@ -273,8 +278,8 @@
[% ELSIF error == "classification_invalid_sortkey" %]
[% title = "Invalid Sortkey for Classification" %]
- The sortkey <em>[% sortkey FILTER html %]</em> is invalid.
- It must be a positive integer.
+ The sortkey '[% sortkey FILTER html %]' is invalid. It must be an
+ integer between 0 and [% constants.MAX_SMALLINT FILTER html %].
[% ELSIF error == "classification_not_deletable" %]
[% title = "Default Classification Can Not Be Deleted" %]