]> git.koha-community.org Git - koha.git/commit
Bug 26082: Call store on new items to update itemnumber
authorColin Campbell <colin.campbell@ptfs-europe.com>
Wed, 29 Jul 2020 12:23:14 +0000 (13:23 +0100)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 4 Sep 2020 16:34:36 +0000 (16:34 +0000)
commit8a4a1667136332a4a8d84df00617d9e70673fd67
tree2eb3a7b21248dc363ce5e11ddc89342a39d0dd7f
parentf470d3f75d55201e5caa088919fe3d30586c92a9
Bug 26082: Call store on new items to update itemnumber

Need to add call to store to Koha::Item->new so that itemnumber
is returned - otherwise is not defined and causes an error
Bug is a side-effect of Bug 23463 as this was implicitly
done in AddItem

Also set biblioitemnumber explicitly for item adds this also
used to be done explicitly but can now cause an FK error

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit b5a36c20a20721e82820ccaaf139285beadbaaf0)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/EDI.pm