From 629f2c959658c50ec2f4790b80bfe5ff30e3cd82 Mon Sep 17 00:00:00 2001 From: rojanu Date: Thu, 17 May 2012 01:22:41 +0200 Subject: Bug 728138: Custom fields should have a "Long Description" attribute to better understand what they are used for r/a=LpSolit --- Bugzilla/Constants.pm | 4 ++ Bugzilla/DB/Schema.pm | 1 + Bugzilla/Field.pm | 28 +++++++++++++ Bugzilla/Install/DB.pm | 6 ++- editfields.cgi | 2 + .../default/admin/custom_fields/create.html.tmpl | 34 +++++++++------ .../en/default/admin/custom_fields/edit.html.tmpl | 48 ++++++++++++++-------- template/en/default/bug/field-help.none.tmpl | 18 ++++---- template/en/default/global/user-error.html.tmpl | 5 +++ 9 files changed, 108 insertions(+), 38 deletions(-) diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm index 9ac54b917..b096cc3bb 100644 --- a/Bugzilla/Constants.pm +++ b/Bugzilla/Constants.pm @@ -156,6 +156,7 @@ use Memoize; MAX_MILESTONE_SIZE MAX_COMPONENT_SIZE MAX_FIELD_VALUE_SIZE + MAX_FIELD_LONG_DESC_LENGTH MAX_FREETEXT_LENGTH MAX_BUG_URL_LENGTH MAX_POSSIBLE_DUPLICATES @@ -537,6 +538,9 @@ use constant MAX_COMPONENT_SIZE => 64; # The maximum length for values of -
- Use this label for the list of [% terms.bugs %] that link to - [%+ terms.abug %] with this - [%+ field_types.${constants.FIELD_TYPE_BUG_ID} FILTER html %] - field. For example, if the description is "Is a duplicate of", - the reverse description would be "Duplicates of this [% terms.bug %]". - Leave blank to disable the list for this field. + [% INCLUDE global/textarea.html.tmpl + name = 'long_desc' + id = 'long_desc' + minrows = 3 + maxrows = 5 + cols = 46 + defaultcontent = defaultcontent + %] @@ -134,7 +132,19 @@ YAHOO.util.Event.onDOMReady(function() {onChangeType(document.getElementById('ty -   + + + + + +
+ Use this label for the list of [% terms.bugs %] that link to + [%+ terms.abug %] with this + [%+ field_types.${constants.FIELD_TYPE_BUG_ID} FILTER html %] + field. For example, if the description is "Is a duplicate of", + the reverse description would be "Duplicates of this [% terms.bug %]". + Leave blank to disable the list for this field. +