mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-05 04:03:45 +08:00
Fix inventory rows without files not being saved bug
Closes SCI-2471.
This commit is contained in:
parent
3253cac86f
commit
68f5a6bebd
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