From 0f1f3de635c043a0e10d8632463b6021aeb28744 Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Mon, 22 Apr 2024 11:26:59 +0200
Subject: [PATCH] Fix #1832

---
 app/models/education/program.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/models/education/program.rb b/app/models/education/program.rb
index 584216893..1183a431e 100644
--- a/app/models/education/program.rb
+++ b/app/models/education/program.rb
@@ -212,7 +212,7 @@ class Education::Program < ApplicationRecord
   end
 
   def published_programs
-    [self]
+    Education::Program.where(id: id)
   end
 
   protected
-- 
GitLab