From 2bc08b203227b5fde8c57048224d73548c198cf4 Mon Sep 17 00:00:00 2001 From: jakubcichocki Date: Wed, 9 Oct 2024 10:30:30 +0200 Subject: [PATCH] bugfix: Add missing table locking on MySQL with php8.2 Added documentattachments to lock, important to create invoice from pro-forma. --- modules/invoicenew.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/invoicenew.php b/modules/invoicenew.php index 224cb786e8..8b265251e3 100644 --- a/modules/invoicenew.php +++ b/modules/invoicenew.php @@ -601,7 +601,7 @@ function changeContents($contents, $newcontents) } if ($SYSLOG) { - $tables = array_merge($tables, array('logmessages', 'logmessagekeys', 'logmessagedata', 'logtransactions')); + $tables = array_merge($tables, array('logmessages', 'logmessagekeys', 'logmessagedata', 'logtransactions', 'documentattachments')); } $hook_data = array(