mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-20 23:16:15 +08:00
Fix task duplication on experiment table [SCI-7730] (#4794)
This commit is contained in:
parent
65624fa6ed
commit
826aa614e3
|
@ -467,9 +467,13 @@ class ExperimentsController < ApplicationController
|
|||
new_my_module.update!(
|
||||
{
|
||||
provisioning_status: :in_progress,
|
||||
name: my_module.next_clone_name
|
||||
name: my_module.next_clone_name,
|
||||
due_date: nil,
|
||||
started_on: nil,
|
||||
completed_on: nil
|
||||
}.merge(new_my_module.get_new_position)
|
||||
)
|
||||
new_my_module.designated_users << current_user
|
||||
MyModules::CopyContentJob.perform_later(current_user, my_module.id, new_my_module.id)
|
||||
end
|
||||
@experiment.workflowimg.purge
|
||||
|
|
Loading…
Reference in a new issue