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
This commit is contained in:
1 parent
f982c5b90d
commit
fa6fa2dc19
2 files changed
+41
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user