mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 11:45:18 +08:00
Merge pull request #1181 from Ducz0r/lm-sci-2471-fix
Fix inventory rows without files not being saved bug [SCI-2471]
This commit is contained in:
commit
58e6701b0a
1 changed files with 2 additions and 2 deletions
|
@ -253,8 +253,8 @@ class Asset < ApplicationRecord
|
|||
report_elements.destroy_all
|
||||
asset_text_datum.destroy if asset_text_datum.present?
|
||||
# Nullify needed to force paperclip file deletion
|
||||
self.file = nil
|
||||
save
|
||||
file = nil
|
||||
save && reload
|
||||
end
|
||||
|
||||
def destroy
|
||||
|
|
Loading…
Reference in a new issue