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 }