mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-01 10:13:33 +08:00
Merge pull request #2723 from urbanrotnik/ur-sci-4721-v2
Fix counter in assign dropdown menu on task [SCI-4721]
This commit is contained in:
commit
309178344e
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, repositories.*')
|
").select('COUNT(DISTINCT 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