From cff77b49c56cefebd459798a4e15f9469f99a77f Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Fri, 5 Jun 2020 11:15:33 +0200
Subject: [PATCH] Bug 25611: Use selected vendor when creating a basket

We did not take into account the vendor selected.

Test plan:
1. Choose Vendor
2. Create Basket
3. Assign a new vendor
Without the patch this new vendor is not changed
With the patch applied the vendor is changed

4. Edit the basket, change the vendor

Reported-by: Kelly McElligott <kelly@bywatersolutions.com>
Signed-off-by: Rhonda Kuiper <rkuiper@roundrocktexas.gov>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
---
 acqui/basketheader.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/acqui/basketheader.pl b/acqui/basketheader.pl
index 0eb479ff20..1e6fde50ad 100755
--- a/acqui/basketheader.pl
+++ b/acqui/basketheader.pl
@@ -158,7 +158,7 @@ if ( $op eq 'add_form' ) {
         );
     } else { #New basket
         $basketno = NewBasket(
-            $booksellerid,
+            scalar $input->param('basketbooksellerid'),
             $loggedinuser,
             scalar $input->param('basketname'),
             scalar $input->param('basketnote'),
-- 
2.20.1