From 5750448dd279928dfcdbd07b477d80f3c6130c83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Fri, 17 Feb 2023 15:11:43 +0100 Subject: [PATCH] fix search_account if fetched from ref --- htdocs/compta/bank/releve.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/compta/bank/releve.php b/htdocs/compta/bank/releve.php index 2e532984d99..f7ac2576c2c 100644 --- a/htdocs/compta/bank/releve.php +++ b/htdocs/compta/bank/releve.php @@ -109,7 +109,8 @@ if (!$sortfield) { $object = new Account($db); if ($id > 0 || !empty($ref)) { $result = $object->fetch($id, $ref); - $account = $object->id; // Force the search field on id of account + // if fetch from ref, $id may be empty + $id = $object->id; // Force the search field on id of account }