From 2ce64359aff8961616de75b39ba4a4e283ac7369 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com>
Date: Fri, 12 May 2023 15:33:53 +0200
Subject: [PATCH] fix

---
 app/models/education/program.rb                              | 5 -----
 .../blocks/templates/programs/_preview.html.erb              | 2 +-
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/app/models/education/program.rb b/app/models/education/program.rb
index 76f86dfac..db6903e83 100644
--- a/app/models/education/program.rb
+++ b/app/models/education/program.rb
@@ -151,11 +151,6 @@ class Education::Program < ApplicationRecord
   end
 
   def references
-    []
-  end
-
-  def references
-    siblings +
     descendants
   end
 
diff --git a/app/views/admin/communication/blocks/templates/programs/_preview.html.erb b/app/views/admin/communication/blocks/templates/programs/_preview.html.erb
index 6abdb0c73..01749cfdc 100644
--- a/app/views/admin/communication/blocks/templates/programs/_preview.html.erb
+++ b/app/views/admin/communication/blocks/templates/programs/_preview.html.erb
@@ -21,7 +21,7 @@ end
           next if program.nil?
         %>
           <li>
-            <%= link_to program, [:admin, program] %>  
+            <%= link_to program, [:admin, program] %>
           </li>
         <% end %>
       </ol>
-- 
GitLab