From 54575f3c30f6eab9adf2078ffcb92cee05a987dc Mon Sep 17 00:00:00 2001 From: Eric Garcia Date: Tue, 16 Jul 2024 17:00:43 +0000 Subject: [PATCH] Bug 37343: Fixed search for vendors when transferring an item in acquistions To test: 1. Have several vendors in acquistions 2. Add a basket and click "+Add to basket" 3. I used an mrc file to add an order from a new file 4. Stage for import -> add staged files to basket 5. Select the items and choose an item type 6. In the Orders table click 'Transfer' under the 'Modify' column 7. Try searching for vendors, nothing happens. 8. Apply patch restart_all 9. Click 'Transfer' again and try searching for vendors. 10. Notice vendors appear NOTE: Vendor search is a GET operation not POST. Use 'do_search' instead of 'cud-do_search'. Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi Signed-off-by: Martin Renvoize --- acqui/transferorder.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/transferorder.pl b/acqui/transferorder.pl index e62fb37dc8..69597f4e7e 100755 --- a/acqui/transferorder.pl +++ b/acqui/transferorder.pl @@ -117,7 +117,7 @@ if( $basketno && $ordernumber) { } else { # Search for booksellers to transfer from/to $op = '' unless $op; - if( $op eq "cud-do_search" ) { + if( $op eq "do_search" ) { my $booksellers = Koha::Acquisition::Booksellers->search( { name => { -like => "%$query%" } }, { order_by => { -asc => 'name' } } );