Koha-clms/serials
Jonathan Druart 8ea97143a5 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 dc465736cd)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2020-11-16 22:41:43 +00:00
..
acqui-search-result.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
acqui-search.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
add_user_search.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
checkexpiration.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
claims.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
create-numberpattern.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
lateissues-export.pl Bug 18536: [QA Follow-up] Tiny regex simplification 2017-05-19 10:41:39 -04:00
reorder_members.pl Bug 20015: use Modern::Perl in Serials perl script 2018-02-05 09:46:45 -03:00
routing-preview.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
routing.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
serials-collection.pl Bug 26604: "Generate next" button gives error on serials-collection.pl 2020-11-10 22:34:31 +00:00
serials-edit.pl Bug 26987: (bug 23463 follow-up) Fix serial receipt if makePreviousSerialAvailable 2020-11-16 22:41:43 +00:00
serials-home.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
serials-search.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
showpredictionpattern.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
subscription-add.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
subscription-batchedit.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
subscription-bib-search.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
subscription-detail.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
subscription-frequencies.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
subscription-frequency.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
subscription-history.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
subscription-numberpattern.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
subscription-numberpatterns.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
subscription-renew.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
viewalerts.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00