From e45e06dcf5008725ececf49ec230d9895ae42ba5 Mon Sep 17 00:00:00 2001 From: Laura_Escamilla Date: Mon, 2 Feb 2026 22:24:23 +0000 Subject: [PATCH] Bug 35612: Fix incorrect primary key reference Signed-off-by: Trevor Diamond Signed-off-by: Martin Renvoize Signed-off-by: Lucas Gass --- C4/Accounts.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Accounts.pm b/C4/Accounts.pm index 5f3f06ee0f..cece86c7c4 100644 --- a/C4/Accounts.pm +++ b/C4/Accounts.pm @@ -114,7 +114,7 @@ sub chargelostitem { my $existing_charges = $account->lines->search( { - item_id => $itemnumber, + itemnumber => $itemnumber, debit_type_code => 'LOST', issue_id => $issue_id, }