[Koha-bugs] [Bug 26987] No property notforloan for Koha::Serial::Item
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Nov 10 15:00:46 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26987
Magnus Enger <magnus at libriotech.no> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #113394|0 |1
is obsolete| |
--- Comment #3 from Magnus Enger <magnus at libriotech.no> ---
Created attachment 113397
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113397&action=edit
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 at libriotech.no>
Applied the patch on a live server showing the described problem,
and the problem was fixed, Koha does not explode.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list