##// END OF EJS Templates
Rails3: model: replace deprecated errors.add_to_base at save_issue_with_child_records of Issue...
Toshi MARUYAMA -
r7469:caa2ce3417de
parent child
Show More
@@ -634,7 +634,7 class Issue < ActiveRecord::Base
634 end
634 end
635 rescue ActiveRecord::StaleObjectError
635 rescue ActiveRecord::StaleObjectError
636 attachments[:files].each(&:destroy)
636 attachments[:files].each(&:destroy)
637 errors.add_to_base l(:notice_locking_conflict)
637 errors.add :base, l(:notice_locking_conflict)
638 raise ActiveRecord::Rollback
638 raise ActiveRecord::Rollback
639 end
639 end
640 end
640 end
General Comments 0
You need to be logged in to leave comments. Login now