mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-11 22:56:41 +08:00
Fix report assigned repository items
This commit is contained in:
parent
6c4506647b
commit
9ca7b76a1f
2 changed files with 4 additions and 3 deletions
|
|
@ -210,7 +210,8 @@ module ReportsHelper
|
|||
repository = Repository.accessible_by_teams(report.team).where(name: repository_name).take
|
||||
return RepositoryRow.none if repository.blank?
|
||||
|
||||
my_modules = MyModule.where(experiment: { project: report.project })
|
||||
my_modules = MyModule.joins(:experiment)
|
||||
.where(experiment: { project: report.project })
|
||||
.where(id: report.report_elements.my_module.select(:my_module_id))
|
||||
repository.repository_rows.joins(:my_modules).where(my_modules: my_modules)
|
||||
end
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal"><%= t('general.no_button') %></button>
|
||||
<button type="button" class="btn btn-primary btn-confirm"><%= t('general.yes_button') %></button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal"><%= t('general.no') %></button>
|
||||
<button type="button" class="btn btn-primary btn-confirm"><%= t('general.yes') %></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue