Bug 25611: Use selected vendor when creating a basket
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 5 Jun 2020 09:15:33 +0000 (11:15 +0200)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Thu, 23 Jul 2020 23:42:20 +0000 (01:42 +0200)
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>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit cd716269a7b2b1b6165154ea7e85844201402a8d)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit b2514759bcd4b5d3cb5758bf66890f1d84a2c586)

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>

(cherry picked from commit c260c6c6ffd74151c08f85b5bf53da9095e0a324)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>

acqui/basketheader.pl

index 0eb479f..1e6fde5 100755 (executable)
@@ -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'),