From b9891b8d68a447507e3938dcf92df6dce2cce4de Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Fri, 7 Oct 2022 09:55:26 +0200
Subject: [PATCH] fix

---
 app/models/communication/extranet.rb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/app/models/communication/extranet.rb b/app/models/communication/extranet.rb
index 5f86575e1..75b8c1a0d 100644
--- a/app/models/communication/extranet.rb
+++ b/app/models/communication/extranet.rb
@@ -41,6 +41,9 @@ class Communication::Extranet < ApplicationRecord
   end
 
   def should_show_years?
+    # For a single program, year is like cohort
+    return false if about.is_a? Education::Program
+    # if a school has a single program, same thing
     about.programs.many?
   end
 
-- 
GitLab