From b18d76dff60826127804935f6e9767305567dd8e Mon Sep 17 00:00:00 2001 From: Kara Diaby Date: Mon, 23 Jan 2023 15:32:43 +0100 Subject: [PATCH] =?UTF-8?q?Ne=20prend=20pas=20en=20compte=20les=20tags=20s?= =?UTF-8?q?ur=20les=20d=C3=A9marches=20en=20brouillon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/procedure.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/procedure.rb b/app/models/procedure.rb index 36ea911dc..f82538474 100644 --- a/app/models/procedure.rb +++ b/app/models/procedure.rb @@ -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