Skip to content

Commit

Permalink
Rails3: model: replace deprecated errors.add_to_base at validate_issu…
Browse files Browse the repository at this point in the history
…e of Issue

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7590 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information
marutosi committed Oct 6, 2011
1 parent caa2ce3 commit 41a6c8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/issue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def validate_issue
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

Expand Down

0 comments on commit 41a6c8b

Please sign in to comment.