From ecacca3d5c1f7b7d49bffe6e7e21e38c04c0ee2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Wed, 11 Nov 2020 17:03:17 +0300 Subject: [PATCH] Hide navigation extension properties from the table --- .../ObjectExtending/CachedObjectExtensionsDtoService.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ApplicationConfigurations/ObjectExtending/CachedObjectExtensionsDtoService.cs b/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ApplicationConfigurations/ObjectExtending/CachedObjectExtensionsDtoService.cs index 3c51398a8c..fdc1f93b1a 100644 --- a/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ApplicationConfigurations/ObjectExtending/CachedObjectExtensionsDtoService.cs +++ b/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/ApplicationConfigurations/ObjectExtending/CachedObjectExtensionsDtoService.cs @@ -1,4 +1,5 @@ -using System.Collections.Generic; +using System; +using System.Collections.Generic; using System.Linq; using Volo.Abp.DependencyInjection; using Volo.Abp.Localization; @@ -139,7 +140,8 @@ namespace Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ObjectExtending }, OnTable = new ExtensionPropertyUiTableDto { - IsVisible = propertyConfig.UI.OnTable.IsVisible + IsVisible = propertyConfig.UI.OnTable.IsVisible && + propertyConfig.UI.Lookup.Url.IsNullOrEmpty() }, Lookup = new ExtensionPropertyUiLookupDto {