From f10008fc8fae2eb600f1e4440102e5d644bd47f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Sat, 18 Dec 2021 13:26:01 +0800 Subject: [PATCH] fix error --- app/controllers/breadcrumb_widgets_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/breadcrumb_widgets_controller.rb b/app/controllers/breadcrumb_widgets_controller.rb index 93595da..df8cb4b 100644 --- a/app/controllers/breadcrumb_widgets_controller.rb +++ b/app/controllers/breadcrumb_widgets_controller.rb @@ -18,7 +18,7 @@ class BreadcrumbWidgetsController < ApplicationController page_name = p.name.gsub(/
|
/,'') rescue "" if i == crumbs.count - 1 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 registration_module = OrbitApp::Module::Registration.find_by_key(p.module) rescue nil taggable_model = registration_module.taggable_model.constantize rescue nil