From d59cc9176cca170780ffa031a1addef2df4942cf Mon Sep 17 00:00:00 2001 From: Brendan Lawlor Date: Mon, 22 Jul 2024 20:07:18 +0000 Subject: [PATCH] Bug 37304: Fix created by filter in Acquisitions advanced search This patch updates the field for the created by filter from ui.item.borrowernumber to ui.item.patron_id Test plan: 1. Add a vendor and a basket 2. Use advanced order search to search for created by 'koha' 3. Use the autofill dropdown to make the selection and click 'Search' 4. Your search returned no results. 5. Apply patch and repeat steps 2 and 3 6. Confirm the search returns the basket you created earlier Signed-off-by: Roman Dolny Signed-off-by: Chris Cormack Signed-off-by: Katrin Fischer (cherry picked from commit c18f368411a1525f401739bc0e586ce8e0f7929b) Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt index 4c2e5b17fc..37404fd64e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt @@ -184,7 +184,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;