mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-10 06:37:32 +08:00
Merge pull request #7544 from artoscinote/ma_SCI_10688
Fix order-by distinct mismatch in protocols list service [SCI-10688]
This commit is contained in:
commit
ad8621605c
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ module Lists
|
|||
published_versions = @raw_data
|
||||
.in_repository_published_version
|
||||
.order(:parent_id, version_number: :desc)
|
||||
.select('DISTINCT ON (parent_id) protocols.id')
|
||||
.select('DISTINCT ON (protocols.parent_id) protocols.id')
|
||||
new_drafts = @raw_data
|
||||
.where(protocol_type: Protocol.protocol_types[:in_repository_draft], parent_id: nil)
|
||||
.select('protocols.id')
|
||||
|
|
Loading…
Reference in a new issue