Merge branch 'master' into 'master'

Fix bug.



See merge request !19
This commit is contained in:
chiu 2021-07-14 16:06:47 +08:00
commit 7d8103cfca
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ class SeminarsController < ApplicationController
params = OrbitHelper.params params = OrbitHelper.params
seminar = SeminarMain.find_by(:uid=>params[:uid]) seminar = SeminarMain.find_by(:uid=>params[:uid])
@seminar = seminar @seminar = seminar
@site_in_use_locales = Site.first.in_use_locales rescue I18n.available_locales
seminar_template_setting = seminar.seminar_template_setting seminar_template_setting = seminar.seminar_template_setting
home_page = Page.where(:parent_page_id=>seminar.id).first home_page = Page.where(:parent_page_id=>seminar.id).first
prefix_url = OrbitHelper.request.path.split("-").first + "-#{params[:uid]}" prefix_url = OrbitHelper.request.path.split("-").first + "-#{params[:uid]}"