From 8873042a6c0f9a3eac88c34922f40c06a1f142d0 Mon Sep 17 00:00:00 2001 From: Bohung Date: Wed, 14 Jul 2021 15:42:37 +0800 Subject: [PATCH] Fix bug. --- app/controllers/seminars_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/seminars_controller.rb b/app/controllers/seminars_controller.rb index 86dc020..e979e29 100644 --- a/app/controllers/seminars_controller.rb +++ b/app/controllers/seminars_controller.rb @@ -21,6 +21,7 @@ class SeminarsController < ApplicationController params = OrbitHelper.params seminar = SeminarMain.find_by(:uid=>params[:uid]) @seminar = seminar + @site_in_use_locales = Site.first.in_use_locales rescue I18n.available_locales seminar_template_setting = seminar.seminar_template_setting home_page = Page.where(:parent_page_id=>seminar.id).first prefix_url = OrbitHelper.request.path.split("-").first + "-#{params[:uid]}"