Rails3: model: replace deprecated errors.add_to_base at validate_issue of Issue
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7590 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
caa2ce3417
commit
41a6c8be65
|
@ -355,7 +355,7 @@ class Issue < ActiveRecord::Base
|
|||
if !assignable_versions.include?(fixed_version)
|
||||
errors.add :fixed_version_id, :inclusion
|
||||
elsif reopened? && fixed_version.closed?
|
||||
errors.add_to_base I18n.t(:error_can_not_reopen_issue_on_closed_version)
|
||||
errors.add :base, I18n.t(:error_can_not_reopen_issue_on_closed_version)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue