summaryrefslogtreecommitdiffstats
path: root/app/helpers/custom_fields_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-28 11:16:58 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-28 11:16:58 +0000
commit83e7ee6729cd0207219719556b3e2aed0a33f360 (patch)
tree8fa089641bcaa6baec5aee080431e4e38c731a51 /app/helpers/custom_fields_helper.rb
parentd4d27bd2d8b57e5d2597b75fbb7b963b6c3e37f7 (diff)
downloadredmine-83e7ee6729cd0207219719556b3e2aed0a33f360.tar.gz
redmine-83e7ee6729cd0207219719556b3e2aed0a33f360.zip
Extracts custom field values validation from CustomValue so that they can be validated globally from the customized object (#1189).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8717 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/custom_fields_helper.rb')
-rw-r--r--app/helpers/custom_fields_helper.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/helpers/custom_fields_helper.rb b/app/helpers/custom_fields_helper.rb
index 68e7d987d..7b1927c0a 100644
--- a/app/helpers/custom_fields_helper.rb
+++ b/app/helpers/custom_fields_helper.rb
@@ -1,7 +1,7 @@
# encoding: utf-8
#
# Redmine - project management software
-# Copyright (C) 2006-2011 Jean-Philippe Lang
+# Copyright (C) 2006-2012 Jean-Philippe Lang
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -61,8 +61,7 @@ module CustomFieldsHelper
def custom_field_label_tag(name, custom_value)
content_tag "label", h(custom_value.custom_field.name) +
(custom_value.custom_field.is_required? ? " <span class=\"required\">*</span>".html_safe : ""),
- :for => "#{name}_custom_field_values_#{custom_value.custom_field.id}",
- :class => (custom_value.errors.empty? ? nil : "error" )
+ :for => "#{name}_custom_field_values_#{custom_value.custom_field.id}"
end
# Return custom field tag with its label tag