From aa997a279a159d5779fdd21c0e64a2aaa306dba3 Mon Sep 17 00:00:00 2001 From: Bohung Date: Wed, 26 May 2021 15:54:51 +0800 Subject: [PATCH] Fix bug. --- app/controllers/breadcrumb_widgets_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/breadcrumb_widgets_controller.rb b/app/controllers/breadcrumb_widgets_controller.rb index efa87aa..467105b 100644 --- a/app/controllers/breadcrumb_widgets_controller.rb +++ b/app/controllers/breadcrumb_widgets_controller.rb @@ -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