mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 11:37:14 +00:00
Reload detached attachments (#32922).
Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@20927 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
ab3128106e
commit
2aa316a3e4
@ -125,9 +125,7 @@ module Redmine
|
||||
|
||||
def detach_saved_attachments
|
||||
saved_attachments.each do |attachment|
|
||||
# TODO: use #reload instead, after upgrading to Rails 5
|
||||
# (after_rollback is called when running transactional tests in Rails 4)
|
||||
attachment.container = nil
|
||||
attachment.reload
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user