From afa2e4aed1a0b0e91bbf10c0c8588997c9cc32c6 Mon Sep 17 00:00:00 2001 From: atm-lucas <121817516+atm-lucasmantegari@users.noreply.github.com> Date: Fri, 24 Apr 2026 15:30:00 +0200 Subject: [PATCH] =?UTF-8?q?FIX=20-=20AccountingAccount=20cache=20=E2=80=94?= =?UTF-8?q?=20silent=20reference=20mutation=20in=20accounting=20journals?= =?UTF-8?q?=20(#37981)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * FIX/AccountingAccountCache * clean code --- htdocs/accountancy/journal/expensereportsjournal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/accountancy/journal/expensereportsjournal.php b/htdocs/accountancy/journal/expensereportsjournal.php index f6671133f95..b5280479f41 100644 --- a/htdocs/accountancy/journal/expensereportsjournal.php +++ b/htdocs/accountancy/journal/expensereportsjournal.php @@ -367,7 +367,7 @@ if ($action == 'writebookkeeping' && !$error && $user->hasRight('accounting', 'b $account_label = $accountingaccount->label; // get compte id and label - if ($accountingaccount->fetch(0, $k, true)) { + if ($accountingaccount->id > 0) { $bookkeeping = new BookKeeping($db); $bookkeeping->doc_date = $val["date"]; $bookkeeping->doc_ref = $val["ref"];