]> git.koha-community.org Git - koha.git/commit
Bug 26987: (bug 23463 follow-up) Fix serial receipt if makePreviousSerialAvailable
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 10 Nov 2020 13:11:10 +0000 (14:11 +0100)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 16 Nov 2020 22:41:43 +0000 (22:41 +0000)
commit8ea97143a53baf145fe2bb707760a4631a18096a
tree73df61aa795167e3821e973dbc7a12a682c00a18
parentcebd342a49bf4218c6f937278b7d90641a88ca47
Bug 26987: (bug 23463 follow-up) Fix serial receipt if makePreviousSerialAvailable

$serialitem is not a Koha::Item there, we need to fetch the item before.

Test plan:
Turn makePreviousSerialAvailable on
Create a subscription
Receive an serial item, mark it "arrived"
Without this patch Koha explodes with
No property notforloan for Koha::Serial::Item at /usr/share/perl5/Exception/Class/Base.pm line 88
Koha::Object::set('Koha::Serial::Item=HASH(0x55dd67c75700)', 'HASH(0x55dd672cec30)') called at /kohadevbox/koha/serials/serials-edit.pl line 273

With this patch applied the notforloan and itype values are correctly
set for the new serial item.

Signed-off-by: Magnus Enger <magnus@libriotech.no>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit dc465736cd14a860ffbda1571012fe94fb1e65fa)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
serials/serials-edit.pl