Fix bug.
This commit is contained in:
parent
2f839eb78d
commit
aa997a279a
|
@ -21,9 +21,8 @@ class BreadcrumbWidgetsController < ApplicationController
|
||||||
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
|
||||||
puts p.module
|
|
||||||
if module_app && registration_module
|
if module_app && registration_module
|
||||||
model = taggable_model.where(:uid=>uid).first
|
model = taggable_model.where(:uid=>uid).first rescue nil
|
||||||
if model
|
if model
|
||||||
if (model.category.present? rescue false)
|
if (model.category.present? rescue false)
|
||||||
override_page_name = model.category.title rescue nil
|
override_page_name = model.category.title rescue nil
|
||||||
|
|
Loading…
Reference in New Issue