]> source.dussan.org Git - redmine.git/commitdiff
Rails3: model: replace deprecated errors.add_to_base at save_issue_with_child_records...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 6 Oct 2011 22:49:02 +0000 (22:49 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 6 Oct 2011 22:49:02 +0000 (22:49 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7589 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue.rb

index 82e0e35ed439345fdee7a21ad8db19f35ff0e771..c36fa788e6f099a72283ab3d48b246df5f7e5bdc 100644 (file)
@@ -634,7 +634,7 @@ class Issue < ActiveRecord::Base
           end
         rescue ActiveRecord::StaleObjectError
           attachments[:files].each(&:destroy)
-          errors.add_to_base l(:notice_locking_conflict)
+          errors.add :base, l(:notice_locking_conflict)
           raise ActiveRecord::Rollback
         end
       end