From 9a73a64a43e1577576418d6d0a8cf0d977b3cf8f Mon Sep 17 00:00:00 2001 From: git Date: Thu, 19 Jun 2025 14:17:51 +0100 Subject: [PATCH 1/2] fixed bug --- plt/handleTriggerExecutionResult.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plt/handleTriggerExecutionResult.inc.php b/plt/handleTriggerExecutionResult.inc.php index 0ea3917..063b4f1 100644 --- a/plt/handleTriggerExecutionResult.inc.php +++ b/plt/handleTriggerExecutionResult.inc.php @@ -27,7 +27,7 @@ function handleTriggerExecutionResult($result, $stdout, $stderr, $originalRow, $ } // Check if the new data differs from the original data - if ($newRowValue !== $originalRow) { + if (json_encode($newRowValue) !== json_encode($originalRow)) { // Update the database row accordingly updateDatabaseRow($tableName, $originalRow, $newRowValue); } From 62532b0cb1be1fa88c2a130fee70425835a9e9d5 Mon Sep 17 00:00:00 2001 From: git Date: Thu, 19 Jun 2025 14:21:29 +0100 Subject: [PATCH 2/2] fixed bug --- plt/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plt/index.php b/plt/index.php index c957be8..e854153 100755 --- a/plt/index.php +++ b/plt/index.php @@ -161,6 +161,7 @@ function runPythonCodeTrigger($functionName, $activeTable, $row) { */ function updateDatabaseRow($tableName, $originalRow, $newRowValue) { + if (empty($originalRow) || empty($newRowValue)) return; $pkColsName = getTblPrimaryKeyColName($tableName); $pkColsValues = array_map(fn($cName) => $originalRow[$cName], $pkColsName);