From 0e2ea68e886628033f9afeba99f90144b4f85510 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 12 Jan 2008 23:20:50 +0000 Subject: Bug 411437: Clipping of "Free Text" fields when user enters more then 255 characters - 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/bug/field.html.tmpl | 5 +++-- template/en/default/global/user-error.html.tmpl | 7 +++++++ 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'template') diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl index ea33d3ad0..1ba0b1784 100644 --- a/template/en/default/bug/field.html.tmpl +++ b/template/en/default/bug/field.html.tmpl @@ -41,8 +41,9 @@ [% IF editable %] [% SWITCH field.type %] [% CASE constants.FIELD_TYPE_FREETEXT %] - + [% CASE constants.FIELD_TYPE_DATETIME %] [% sortkey FILTER html %]. + [% ELSIF error == "freetext_too_long" %] + [% title = "Text Too Long" %] + The text you entered is too long ([% text.length FILTER html %] characters, + above the maximum length allowed of [% constants.MAX_FREETEXT_LENGTH FILTER none %] + characters): +

[% text FILTER html %]

+ [% ELSIF error == "group_cannot_delete" %] [% title = "Cannot Delete Group" %] The [% name FILTER html %] group cannot be deleted because -- cgit v1.2.3-24-g4f1b