From 243cde72bc0353df8ace1148e62c5e26255b2f03 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 29 Jan 2019 20:42:08 +0100 Subject: [PATCH] Fix 2 for EasyUI bug with footer refresh --- Site/Automation/Json-MasterPersonEditPaymentHistory.aspx.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Site/Automation/Json-MasterPersonEditPaymentHistory.aspx.cs b/Site/Automation/Json-MasterPersonEditPaymentHistory.aspx.cs index 9da03cc6..e27849b3 100644 --- a/Site/Automation/Json-MasterPersonEditPaymentHistory.aspx.cs +++ b/Site/Automation/Json-MasterPersonEditPaymentHistory.aspx.cs @@ -183,10 +183,11 @@ namespace Swarmops.Frontend.Automation StringBuilder result = new StringBuilder(16384); result.Append("["); - if (items.Any()) + if (items.Count() > 0) { // Must return something in body to refresh footer - EasyUI bug + result.Append("{"); result.AppendFormat( "\"id\":\"NoRecords\",\"name\":\"{0}\",\"description\":\"{1}\"", JsonSanitize(Resources.Global.Global_EmptySet),