From 13ebb7480306893df555f66ef1a107bda45e188f 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 Signed-off-by: Katrin Fischer (cherry picked from commit 50c5d167bb5941b82d6f13c073486f1fc39700af) Signed-off-by: Paul Derscheid --- .../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;