Merge pull request #23947 from frederic34/patch-5

fix search_account if fetched from ref
This commit is contained in:
Laurent Destailleur 2023-02-17 15:22:55 +01:00 committed by GitHub
commit a22efe547f
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
}