From 9aacc2facba8c28949acd253bffd6635a539c3c7 Mon Sep 17 00:00:00 2001 From: Emily Lamancusa Date: Thu, 24 Oct 2024 11:54:02 -0400 Subject: [PATCH] Bug 22421: (follow-up) Fix tests Need to search by old_issue_id instead of issue_id when checking the value of an accountline after calling AddReturn on the linked checkout Signed-off-by: Martin Renvoize --- t/db_dependent/Circulation.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index 39b30dea556..82a93c7f0e8 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -3701,7 +3701,7 @@ subtest 'AddReturn | is_overdue' => sub { $lines = Koha::Account::Lines->search( { borrowernumber => $patron->borrowernumber, - issue_id => $issue->id + old_issue_id => $issue->id } ); $accountline = $lines->next; -- 2.47.0