summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-10-06 22:49:26 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-10-06 22:49:26 +0000
commit41a6c8be6529b7ff9cd32706cee942003811f5e5 (patch)
treef3d541c5fa7ca9aad8aae19bacd6eb6183361019 /app
parentcaa2ce3417de2995ef3a7096ac2e9072f4acb315 (diff)
downloadredmine-41a6c8be6529b7ff9cd32706cee942003811f5e5.tar.gz
redmine-41a6c8be6529b7ff9cd32706cee942003811f5e5.zip
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
Diffstat (limited to 'app')
-rw-r--r--app/models/issue.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index c36fa788e..50b0dcecd 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -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