mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 17:51:13 +08:00
Fix missing team at the StepTable creation [SCI-8036] (#5090)
This commit is contained in:
parent
7584242745
commit
6471dbed5b
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,8 @@ module StepElements
|
|||
Table.new(
|
||||
name: t('protocols.steps.table.default_name', position: @step.step_tables.length + 1),
|
||||
contents: { data: Array.new(5, Array.new(5, '')) }.to_json,
|
||||
created_by: current_user
|
||||
created_by: current_user,
|
||||
team: @step.protocol.team
|
||||
))
|
||||
|
||||
ActiveRecord::Base.transaction do
|
||||
|
|
Loading…
Reference in a new issue