From 8e0dac93a0254cd01a97232d36935b0a0158c0ba Mon Sep 17 00:00:00 2001 From: yazz Date: Tue, 26 Nov 2024 16:41:06 +0100 Subject: [PATCH] Added "yz.uiDb.currentDebugStack.currentSqlLogId" --- public/go.html | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/public/go.html b/public/go.html index ca8353a8c..8c6d7112f 100644 --- a/public/go.html +++ b/public/go.html @@ -13456,7 +13456,7 @@

0) { - let lastStepId = steps[steps.length - 1] - yz.uiDb.sqlui( "insert into ui_table_debug_data_log ( table_name , new_value , operation_type , fk_parent_debug_sql_log_id ) values (?,?,?,?)", - [tableName, JSON.stringify(r),"INSERT",lastStepId]) - } + if (yz.uiDb.currentDebugStack.currentSqlLogId) { + yz.uiDb.sqlui( "insert into ui_table_debug_data_log ( table_name , new_value , operation_type , fk_parent_debug_sql_log_id ) values (?,?,?,?)", + [tableName, JSON.stringify(r),"INSERT",yz.uiDb.currentDebugStack.currentSqlLogId]) } } @@ -14305,6 +14301,7 @@