From 84374c20cb94d5f5f26543e8b64257aecf183c3f Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Wed, 15 Feb 2023 16:58:31 +0100
Subject: [PATCH] fix menus on site creation

---
 app/models/communication/website/with_menus.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/models/communication/website/with_menus.rb b/app/models/communication/website/with_menus.rb
index aa377e88a..8864e8069 100644
--- a/app/models/communication/website/with_menus.rb
+++ b/app/models/communication/website/with_menus.rb
@@ -74,7 +74,7 @@ module Communication::Website::WithMenus
 
   def find_or_create_menu(identifier)
     menu = menus.where(identifier: identifier, university: university, language: default_language).first_or_initialize do |menu|
-      menu.title = I18n.t("communication.menus.default_title.#{identifier}")
+      menu.title = I18n.t("communication.website.menus.default_title.#{identifier}")
     end
     unless menu.persisted?
       menu.save
-- 
GitLab