fix error

This commit is contained in:
邱博亞 2021-12-18 13:26:01 +08:00
parent 4a8182710b
commit f10008fc8f
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class BreadcrumbWidgetsController < ApplicationController
page_name = p.name.gsub(/<br>|<BR>/,'') rescue "" page_name = p.name.gsub(/<br>|<BR>/,'') rescue ""
if i == crumbs.count - 1 if i == crumbs.count - 1
override_page_name = nil override_page_name = nil
if uid.present? && p.module.present? if uid.present? && p.module.present? && p.module=='announcement'
module_app = ModuleApp.find_by_key(p.module) rescue nil module_app = ModuleApp.find_by_key(p.module) rescue nil
registration_module = OrbitApp::Module::Registration.find_by_key(p.module) rescue nil registration_module = OrbitApp::Module::Registration.find_by_key(p.module) rescue nil
taggable_model = registration_module.taggable_model.constantize rescue nil taggable_model = registration_module.taggable_model.constantize rescue nil