From c8b3a234aafb91c5eceec6bb764da0b815ba8fbe Mon Sep 17 00:00:00 2001 From: Marcel Hirschle Date: Wed, 26 Apr 2023 11:36:27 +0200 Subject: [PATCH] MH: SR2 Regex Bugfix --- Report/DefaultReports/SettlementReport2.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Report/DefaultReports/SettlementReport2.cs b/Report/DefaultReports/SettlementReport2.cs index 6e31c349c..9778efff1 100644 --- a/Report/DefaultReports/SettlementReport2.cs +++ b/Report/DefaultReports/SettlementReport2.cs @@ -6,6 +6,7 @@ using DevExpress.XtraReports.UI; using BeWo.Report.ReportObjects; using BeWo.Report; using System.Text.RegularExpressions; +using BS.Shared.Extensions; namespace BeWo.Report.DefaultReports { @@ -34,7 +35,7 @@ namespace BeWo.Report.DefaultReports if (pRO.FehlkontakteString != null && ii.RateFactor == 0) { Zwischensumme.Visible = true; - if (ii.ItemDescription != null) + if (ii.ItemDescription.IsNullOrEmpty()) { ii.DetailDescription = Regex.Replace(ii.DetailDescription, ii.ItemDescription, "Fehlkontakte"); }