summaryrefslogtreecommitdiffstats
path: root/config/initializers/10-patches.rb
diff options
context:
space:
mode:
authorJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2011-06-27 01:03:22 +0000
committerJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2011-06-27 01:03:22 +0000
commitfa6fa2dc19844a10c3696e6d480a95a5a7746050 (patch)
treedc6c297c2d68047c236378fb2536bd14a9ef267b /config/initializers/10-patches.rb
parentf982c5b90d5258196774bccfa6a4c587f2a878c5 (diff)
downloadredmine-fa6fa2dc19844a10c3696e6d480a95a5a7746050.tar.gz
redmine-fa6fa2dc19844a10c3696e6d480a95a5a7746050.zip
Fixed: queries error messages about custom fields output a 'translation missing' error (#8554).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6126 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/initializers/10-patches.rb')
-rw-r--r--config/initializers/10-patches.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb
index 0e23a3d43..bb4a7a226 100644
--- a/config/initializers/10-patches.rb
+++ b/config/initializers/10-patches.rb
@@ -7,7 +7,7 @@ module ActiveRecord
# Translate attribute names for validation errors display
def self.human_attribute_name(attr)
- l("field_#{attr.to_s.gsub(/_id$/, '')}")
+ l("field_#{attr.to_s.gsub(/_id$/, '')}", :default => attr)
end
end
end