From f2a7c9fe440dacebb485c57f1a5505922a622858 Mon Sep 17 00:00:00 2001 From: Brendan Lawlor Date: Fri, 13 Dec 2024 15:06:58 +0000 Subject: [PATCH] Bug 38698: Fix Acquisitions duplicate orders search This patch updates the field for the created by filter from ui.item.borrowernumber to ui.item.patron_id To test: 1. Add a vendor and a basket 2. Stage a file and add an order to the basket 3. Add another basket and add an order using From existing orders (copy) 4. On the Duplicate existing orders page search for Basket created by: 'koha' 5. No results appear :( 6. Apply patch and repeat steps 3 and 4 6. Confirm the search returns the basket you created earlier Signed-off-by: David Nind --- .../intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt index a430243375..38f577c579 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt @@ -350,7 +350,7 @@ } patron_autocomplete($("#find_patron"), { 'on-select-callback': function( event, ui ) { - var field = ui.item.borrowernumber; + var field = ui.item.patron_id; AddPatron( ui.item.firstname + " " + ( ui.item.middle_name || "" ) + " " + ui.item.surname, field, $("#basket_creators"), 'created_by' ); $("#find_patron").val('').focus(); return false; -- 2.39.5