fix error
This commit is contained in:
parent
4a8182710b
commit
f10008fc8f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue