This commit is contained in:
邱博亞 2022-12-19 13:18:45 +08:00
parent a837546620
commit df48fbde52
1 changed files with 1 additions and 0 deletions

View File

@ -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?