This commit is contained in:
BoHung Chiu 2021-05-26 15:54:51 +08:00
parent 2f839eb78d
commit aa997a279a
1 changed files with 1 additions and 2 deletions

View File

@ -21,9 +21,8 @@ class BreadcrumbWidgetsController < ApplicationController
module_app = ModuleApp.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
puts p.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.category.present? rescue false)
override_page_name = model.category.title rescue nil