Merge branch 'main' into a11y-8224-update-styles-actions-button

This commit is contained in:
Julie Salha 2023-01-24 15:48:52 +01:00 committed by GitHub
commit a52159e104
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -824,7 +824,7 @@ class Procedure < ApplicationRecord
def self.tags
unnest = Arel::Nodes::NamedFunction.new('UNNEST', [self.arel_table[:tags]])
query = self.select(unnest.as('tags')).distinct.order('tags')
query = self.select(unnest.as('tags')).publiees_ou_closes.distinct.order('tags')
self.connection.query(query.to_sql).flatten
end