From c783f1abed696829cef7ed588755e1780358704b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com>
Date: Tue, 28 May 2024 08:44:25 +0200
Subject: [PATCH] fix

---
 app/models/education/program/with_diploma.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/models/education/program/with_diploma.rb b/app/models/education/program/with_diploma.rb
index 46e126d4a..b09339c50 100644
--- a/app/models/education/program/with_diploma.rb
+++ b/app/models/education/program/with_diploma.rb
@@ -7,9 +7,9 @@ module Education::Program::WithDiploma
       optional: true
   end
 
-  # Used by website 
+  # Used by website
   # https://github.com/noesya/osuny/issues/1529
   def diplomas
-    [diploma]
+    Education::Diploma.where(id: diploma_id)
   end
 end
-- 
GitLab