fix search_account if fetched from ref

This commit is contained in:
Frédéric FRANCE 2023-02-17 15:11:43 +01:00 committed by GitHub
parent 5c0ace0c89
commit 5750448dd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}