mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-06 04:34:06 +08:00
Fix counter in assign dropdown menu on task
This commit is contained in:
parent
4040483c74
commit
d8d0f7ef8e
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ class MyModuleRepositoriesController < ApplicationController
|
|||
LEFT OUTER JOIN my_module_repository_rows ON
|
||||
my_module_repository_rows.repository_row_id = repository_rows.id
|
||||
AND my_module_repository_rows.my_module_id = #{@my_module.id}
|
||||
").select('COUNT(my_module_repository_rows.id) as rows_count, repositories.*')
|
||||
").select('COUNT(DISTINCT my_module_repository_rows.id) as rows_count, repositories.*')
|
||||
.group(:id)
|
||||
.having('COUNT(my_module_repository_rows.id) > 0 OR repositories.archived = FALSE')
|
||||
.order(:name)
|
||||
|
|
Loading…
Reference in a new issue