From 7605d1f4c0fd09e9cca2627ffcd0c77bdfa07eeb Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Wed, 17 Jan 2024 15:40:18 +0100
Subject: [PATCH] Fix #1529

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

diff --git a/app/models/education/program/with_diploma.rb b/app/models/education/program/with_diploma.rb
index 41e3829fc..46e126d4a 100644
--- a/app/models/education/program/with_diploma.rb
+++ b/app/models/education/program/with_diploma.rb
@@ -6,4 +6,10 @@ module Education::Program::WithDiploma
       class_name: 'Education::Diploma',
       optional: true
   end
+
+  # Used by website 
+  # https://github.com/noesya/osuny/issues/1529
+  def diplomas
+    [diploma]
+  end
 end
-- 
GitLab