[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 13 03:51:03 CEST 2020


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

Andrew Fuerste-Henry <andrew at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #107873|0                           |1
        is obsolete|                            |

--- Comment #3 from Andrew Fuerste-Henry <andrew at bywatersolutions.com> ---
Created attachment 108158
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108158&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

Signed-off-by: Andrew Fuerste-Henry <andrew at bywatersolutions.com>

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


More information about the Koha-bugs mailing list