From 7987b85e219172e311ceada3ce7d6d83ec7446ed Mon Sep 17 00:00:00 2001 From: Dmitriy Benyuk Date: Wed, 26 Feb 2025 11:09:03 +0200 Subject: [PATCH] Conditional 'OR' is not honored --- src/CSVSourceReader.cs | 9 +-------- ...namicweb.DataIntegration.Providers.CsvProvider.csproj | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/CSVSourceReader.cs b/src/CSVSourceReader.cs index b08f3fd..2f90cf3 100644 --- a/src/CSVSourceReader.cs +++ b/src/CSVSourceReader.cs @@ -144,14 +144,7 @@ public bool IsDone() private bool RowMatchesConditions() { - foreach (MappingConditional conditional in mapping.Conditionals) - { - if (!_provider.CheckCondition(conditional, nextResult)) - { - return false; - } - } - return true; + return mapping.Conditionals?.CheckConditionals(nextResult) ?? true; } Dictionary nextResult; diff --git a/src/Dynamicweb.DataIntegration.Providers.CsvProvider.csproj b/src/Dynamicweb.DataIntegration.Providers.CsvProvider.csproj index d73f6b6..40cb737 100644 --- a/src/Dynamicweb.DataIntegration.Providers.CsvProvider.csproj +++ b/src/Dynamicweb.DataIntegration.Providers.CsvProvider.csproj @@ -1,6 +1,6 @@  - 10.6.2 + 10.6.3 1.0.0.0 CSV Provider CSV Provider