From df48fbde52e3f810fe94ccf9c6dacfee04d92666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Mon, 19 Dec 2022 13:18:45 +0800 Subject: [PATCH] Fix bug. --- app/controllers/admin/seminars_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/admin/seminars_controller.rb b/app/controllers/admin/seminars_controller.rb index 837d2b0..ea88ada 100644 --- a/app/controllers/admin/seminars_controller.rb +++ b/app/controllers/admin/seminars_controller.rb @@ -77,6 +77,7 @@ class Admin::SeminarsController < OrbitAdminController end def sub_page_setting @seminar_page_root = Page.where(:parent_page_id=>params[:id]).first + @seminar_template_setting = SeminarTemplateSetting.where(:seminar_main_id=>params[:id]).first available_locales = Site.first.in_use_locales rescue I18n.available_locales available_locales = available_locales.map{|l| l.to_s} if @seminar_page_root.nil?