mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
Fix editing of existing reports [SCI-7817] (#4886)
Co-authored-by: Oleksii Kriuchykhin <okriuchykhin@biosistemika.com>
This commit is contained in:
parent
59265c096b
commit
7e1d1ffd99
1 changed files with 2 additions and 1 deletions
|
@ -110,7 +110,8 @@ class ReportsController < ApplicationController
|
|||
@project_contents = {
|
||||
experiments: @report.report_elements.order(:position).experiment.pluck(:experiment_id),
|
||||
my_modules: @report.report_elements.order(:position).my_module.pluck(:my_module_id),
|
||||
repositories: @report.settings.dig(:task, :repositories)
|
||||
repositories: @report.settings.dig(:task, :repositories) ||
|
||||
@report.report_elements.my_module_repository.distinct(:repository_id).pluck(:repository_id)
|
||||
}
|
||||
render :new
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue