mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 15:36:22 +08:00
Merge pull request #2690 from aignatov-bio/ai-sci-4791-fix-shared-inventories-in-task-repositories-dropdown
Fix repositories dropdown on task page [SCI-4791]
This commit is contained in:
commit
1c34762af3
|
@ -108,7 +108,7 @@ class MyModuleRepositoriesController < ApplicationController
|
||||||
LEFT OUTER JOIN my_module_repository_rows ON
|
LEFT OUTER JOIN my_module_repository_rows ON
|
||||||
my_module_repository_rows.repository_row_id = repository_rows.id
|
my_module_repository_rows.repository_row_id = repository_rows.id
|
||||||
AND my_module_repository_rows.my_module_id = #{@my_module.id}
|
AND my_module_repository_rows.my_module_id = #{@my_module.id}
|
||||||
").select('COUNT(my_module_repository_rows.id) as rows_count', :name, :id, :team_id)
|
").select('COUNT(my_module_repository_rows.id) as rows_count, repositories.*')
|
||||||
.group(:id)
|
.group(:id)
|
||||||
.having('COUNT(my_module_repository_rows.id) > 0 OR repositories.archived = FALSE')
|
.having('COUNT(my_module_repository_rows.id) > 0 OR repositories.archived = FALSE')
|
||||||
.order(:name)
|
.order(:name)
|
||||||
|
|
Loading…
Reference in a new issue