From fe92ae876e81f25c732ba335db652b4ed3ad7be8 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Tue, 16 Aug 2022 12:13:25 +0200 Subject: [PATCH] SetControlValues_FromControl: fix connection id check --- app/DD_PM_WINDREAM/frmValidator.vb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/DD_PM_WINDREAM/frmValidator.vb b/app/DD_PM_WINDREAM/frmValidator.vb index ef50190..10f3e89 100644 --- a/app/DD_PM_WINDREAM/frmValidator.vb +++ b/app/DD_PM_WINDREAM/frmValidator.vb @@ -1546,10 +1546,10 @@ Public Class frmValidator Dim oControlname2Set = oRow.Item("NAME") LOGGER.Debug($"Workin on SetControLValue for {oControlname2Set} ...") - Dim oConnectionId = NotNull(oRow.Item("CONNECTION_ID"), 0) + Dim oConnectionId = NotNull(oRow.Item("CONNECTION_ID"), -1) Dim oControlDataSql = NotNull(oRow.Item("SET_CONTROL_DATA"), String.Empty) - If oConnectionId = 0 Or oControlDataSql = String.Empty Then + If oConnectionId = -1 Or oControlDataSql = String.Empty Then LOGGER.Debug($"Error: Check CoNN ID and SQL on NULL VALUES!") Exit Sub End If