mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-31 12:09:17 +08:00
Fix duplicate keywords in protocol table [SCI-8009] (#5034)
This commit is contained in:
parent
e88b84000b
commit
bda3661a9b
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ class ProtocolsDatatable < CustomDatatable
|
|||
def get_raw_records
|
||||
get_raw_records_base.select(
|
||||
'"protocols".*',
|
||||
'STRING_AGG("protocol_keywords"."name", \', \') AS "protocol_keywords_str"',
|
||||
'STRING_AGG(DISTINCT("protocol_keywords"."name"), \', \') AS "protocol_keywords_str"',
|
||||
'COUNT(DISTINCT("protocol_versions"."id")) + 1 AS "nr_of_versions"', # User assignments generate duplicates
|
||||
'COUNT("protocol_drafts"."id") AS "nr_of_drafts"',
|
||||
'COUNT("user_assignments"."id") AS "nr_of_assigned_users"',
|
||||
|
|
Loading…
Reference in a new issue