fix error

This commit is contained in:
chiu 2021-09-19 21:47:39 +08:00
parent 7b4f271fcc
commit d0f01780c1
1 changed files with 1 additions and 0 deletions

View File

@ -407,6 +407,7 @@ class AnnouncementsController < ApplicationController
@tab_option = 0 @tab_option = 0
@read_more_option = 0 @read_more_option = 0
@all_setting_option = 0 @all_setting_option = 0
@image_version = 'thumb'
if subpart.methods.include? 'select_options'.to_sym if subpart.methods.include? 'select_options'.to_sym
ModuleApp.all.select{|tmp| tmp.key.to_s=='announcement'}.each do |modile_app| ModuleApp.all.select{|tmp| tmp.key.to_s=='announcement'}.each do |modile_app|
@show_options = modile_app.show_options rescue nil @show_options = modile_app.show_options rescue nil