From 35b9ea957875c8bcc880fd570e08a8d36325b7d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 26 Mar 2026 01:44:20 +0100 Subject: [PATCH] fix parameter (V20 fix) (#37616) --- htdocs/accountancy/journal/bankjournal.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/htdocs/accountancy/journal/bankjournal.php b/htdocs/accountancy/journal/bankjournal.php index 194958d561f..2037b17bf62 100644 --- a/htdocs/accountancy/journal/bankjournal.php +++ b/htdocs/accountancy/journal/bankjournal.php @@ -790,7 +790,7 @@ if (!$error && $action == 'writebookkeeping' && $user->hasRight('accounting', 'b $bookkeeping->subledger_label = ''; if (empty($conf->cache['accountingaccountincurrententity'][$k])) { $accountingaccount = new AccountingAccount($db); - $accountingaccount->fetch(null, $k, true); + $accountingaccount->fetch(0, $k, true); $conf->cache['accountingaccountincurrententity'][$k] = $accountingaccount; } else { $accountingaccount = $conf->cache['accountingaccountincurrententity'][$k]; @@ -802,7 +802,7 @@ if (!$error && $action == 'writebookkeeping' && $user->hasRight('accounting', 'b $bookkeeping->subledger_label = ''; if (empty($conf->cache['accountingaccountincurrententity'][$k])) { $accountingaccount = new AccountingAccount($db); - $accountingaccount->fetch(null, $k, true); + $accountingaccount->fetch(0, $k, true); $conf->cache['accountingaccountincurrententity'][$k] = $accountingaccount; } else { $accountingaccount = $conf->cache['accountingaccountincurrententity'][$k]; @@ -814,7 +814,7 @@ if (!$error && $action == 'writebookkeeping' && $user->hasRight('accounting', 'b $bookkeeping->subledger_label = ''; if (empty($conf->cache['accountingaccountincurrententity'][$k])) { $accountingaccount = new AccountingAccount($db); - $accountingaccount->fetch(null, $k, true); + $accountingaccount->fetch(0, $k, true); $conf->cache['accountingaccountincurrententity'][$k] = $accountingaccount; } else { $accountingaccount = $conf->cache['accountingaccountincurrententity'][$k]; @@ -826,7 +826,7 @@ if (!$error && $action == 'writebookkeeping' && $user->hasRight('accounting', 'b $bookkeeping->subledger_label = ''; if (empty($conf->cache['accountingaccountincurrententity'][$k])) { $accountingaccount = new AccountingAccount($db); - $accountingaccount->fetch(null, $k, true); + $accountingaccount->fetch(0, $k, true); $conf->cache['accountingaccountincurrententity'][$k] = $accountingaccount; } else { $accountingaccount = $conf->cache['accountingaccountincurrententity'][$k]; @@ -838,7 +838,7 @@ if (!$error && $action == 'writebookkeeping' && $user->hasRight('accounting', 'b $bookkeeping->subledger_label = ''; if (empty($conf->cache['accountingaccountincurrententity'][$k])) { $accountingaccount = new AccountingAccount($db); - $accountingaccount->fetch(null, $k, true); + $accountingaccount->fetch(0, $k, true); $conf->cache['accountingaccountincurrententity'][$k] = $accountingaccount; } else { $accountingaccount = $conf->cache['accountingaccountincurrententity'][$k]; @@ -850,7 +850,7 @@ if (!$error && $action == 'writebookkeeping' && $user->hasRight('accounting', 'b $bookkeeping->subledger_label = $tabcompany[$key]['name']; if (empty($conf->cache['accountingaccountincurrententity'][$tabpay[$key]["account_various"]])) { $accountingaccount = new AccountingAccount($db); - $accountingaccount->fetch(null, $tabpay[$key]["account_various"], true); + $accountingaccount->fetch(0, $tabpay[$key]["account_various"], true); $conf->cache['accountingaccountincurrententity'][$tabpay[$key]["account_various"]] = $accountingaccount; } else { $accountingaccount = $conf->cache['accountingaccountincurrententity'][$tabpay[$key]["account_various"]]; @@ -862,7 +862,7 @@ if (!$error && $action == 'writebookkeeping' && $user->hasRight('accounting', 'b $bookkeeping->subledger_label = ''; if (empty($conf->cache['accountingaccountincurrententity'][$k])) { $accountingaccount = new AccountingAccount($db); - $accountingaccount->fetch(null, $k, true); + $accountingaccount->fetch(0, $k, true); $conf->cache['accountingaccountincurrententity'][$k] = $accountingaccount; } else { $accountingaccount = $conf->cache['accountingaccountincurrententity'][$k];