Update handleTriggerExecutionResult.inc.php
This commit is contained in:
parent
ac7f2e9f08
commit
56a17dfb84
@ -18,6 +18,9 @@ function handleTriggerExecutionResult($result, $stdout, $stderr, $originalRow, $
|
|||||||
// Decode the output from JSON to array
|
// Decode the output from JSON to array
|
||||||
$newRowValue = json_decode($stdout, true);
|
$newRowValue = json_decode($stdout, true);
|
||||||
|
|
||||||
|
// Ignore the hydrate columns
|
||||||
|
$newRowValue = array_filter($newRowValue, fn($k) => !str_ends_with($k, '_ref'), ARRAY_FILTER_USE_KEY);
|
||||||
|
|
||||||
if ($newRowValue === null) {
|
if ($newRowValue === null) {
|
||||||
updateTriggerError($tableName, 'Invalid JSON output from sandboxed execution.');
|
updateTriggerError($tableName, 'Invalid JSON output from sandboxed execution.');
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user