]> git.koha-community.org Git - koha.git/commit
Bug 26134: (bug 23463 follow-up) Fix add to basket from staged file
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 6 Aug 2020 10:50:36 +0000 (12:50 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 31 Aug 2020 20:05:57 +0000 (20:05 +0000)
commit45e8f2f5c600094f90f938b1b30d81c236d10020
tree1b36e3abd81523e4976c477de906038d81d94e52
parenteb6ab608d9f2c17064f3ecbcee53a33da3ee5aec
Bug 26134: (bug 23463 follow-up) Fix add to basket from staged file

There is a ->store call missing when we attempt to create a new item.

Test plan:
- set at least one value in MARCItemFieldsToOrder
- add to a basket via staged file with at least one value matching your MARCItemFields mappings
- set required fields for your order and click Save
=> Without this patch you got:
receive error: "DBIx::Class::Storage::DBI::_dbh_execute(): Column 'itemnumber' cannot be null at /kohadevbox/koha/Koha/Acquisition/Order.pm line 113
 at /usr/share/perl5/DBIx/Class/Exception.pm line 77"
=> With this patch applied the order has been created successfully

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 12e1b2faccf6396d3c4b5327c881e78f177f135b)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 5e972d95ac834859ec5f9eabae0b2c20f7754818)
acqui/addorderiso2709.pl