From 25e77b607f106a2fdc79d48f3399d6bea2ee3fc0 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Wed, 6 Mar 2019 01:08:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG=EF=BC=9A=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E7=BB=B4=E6=8A=A4=E9=A1=B5=E9=9D=A2=E7=88=B6=E7=BA=A7?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E6=9C=89?= =?UTF-8?q?=E5=80=BC=E6=97=B6=E7=A8=8B=E5=BA=8F=E6=8A=9B=E5=87=BA=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=20closed=20#ISBP5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Query/QueryMenuOption.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bootstrap.Admin/Query/QueryMenuOption.cs b/Bootstrap.Admin/Query/QueryMenuOption.cs index c696cf64..b440354f 100644 --- a/Bootstrap.Admin/Query/QueryMenuOption.cs +++ b/Bootstrap.Admin/Query/QueryMenuOption.cs @@ -1,4 +1,4 @@ -using Bootstrap.DataAccess; +using Bootstrap.DataAccess; using Longbow.Web.Mvc; using System.Linq; @@ -35,7 +35,7 @@ namespace Bootstrap.Admin.Query var data = MenuHelper.RetrieveMenusByUserName(userName); if (!string.IsNullOrEmpty(ParentName)) { - data = data.Where(t => t.ParentName.Contains(ParentName)); + data = data.Where(t => t.ParentName != null && t.ParentName.Contains(ParentName)); } if (!string.IsNullOrEmpty(Name)) {