From 87baedad4f0853c7b71e64be7f162d615ceea065 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com>
Date: Mon, 13 Mar 2023 12:21:35 +0100
Subject: [PATCH] fix facets model

---
 app/models/communication/extranet/document/facets.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/models/communication/extranet/document/facets.rb b/app/models/communication/extranet/document/facets.rb
index 4e1977a15..cb8ef4f22 100644
--- a/app/models/communication/extranet/document/facets.rb
+++ b/app/models/communication/extranet/document/facets.rb
@@ -1,7 +1,7 @@
 class Communication::Extranet::Document::Facets < FacetedSearch::Facets
   def initialize(params, extranet)
     super(params)
-    @model = extranet.documents
+    @model = extranet.documents.published
     filter_with_text :name, {
       title: Communication::Extranet::Document.human_attribute_name('name')
     }
-- 
GitLab