mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
Fix repositories dropdown on task page
This commit is contained in:
parent
64b66f0d73
commit
968963c24b
1 changed files with 1 additions and 1 deletions
|
@ -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