Bug 39722: (follow-up) Remove find

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Baptiste Wojtkowski 2026-01-29 15:32:29 +00:00 committed by Lucas Gass
parent fac53ff21a
commit fa23e8c145
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 1 additions and 1 deletions

View File

@ -1417,7 +1417,7 @@ sub ModReceiveOrder {
$order->{invoice_unitprice} ||= $order->{unitprice};
$order->{invoice_currency} ||= Koha::Acquisition::Currencies->get_active->currency;
my $suggestion = Koha::Suggestions->find( { biblionumber => $biblionumber } );
my $suggestion = Koha::Suggestions->search( { biblionumber => $biblionumber } )->single;
if ($suggestion) {
ModSuggestion(
{