mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-06 15:40:31 +08:00
Merge pull request #118 from ZmagoD/zd_SCI_398
fixes workflow img bug [fixes SCI-398]
This commit is contained in:
commit
5b4eb07960
1 changed files with 2 additions and 4 deletions
|
@ -199,9 +199,6 @@ class Experiment < ActiveRecord::Base
|
|||
|
||||
# Everyhing is set, now we can move any module groups
|
||||
move_module_groups(updated_to_move_groups)
|
||||
|
||||
# update Experiment timestamp
|
||||
touch
|
||||
end
|
||||
rescue ActiveRecord::ActiveRecordError, ArgumentError, ActiveRecord::RecordNotSaved
|
||||
return false
|
||||
|
@ -324,7 +321,8 @@ class Experiment < ActiveRecord::Base
|
|||
file = File.open(file_location)
|
||||
self.workflowimg = file
|
||||
file.close
|
||||
save!
|
||||
save
|
||||
touch(:workflowimg_updated_at)
|
||||
rescue => ex
|
||||
logger.error ex.message
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue