Merge pull request #8481 from demarches-simplifiees/fix-procedure-tags-request
Tags : Ne prend pas en compte les tags sur les démarches en brouillon
This commit is contained in:
commit
7740fdea4a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue