[Koha-bugs] [Bug 26134] Error when adding to basket from new/staged file when using MARCItemFieldsToOrder

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Aug 6 12:52:25 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26134

--- Comment #2 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 107873
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107873&action=edit
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

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list