Koha-clms/Koha/Old
Martin Renvoize 971ad5538c
Bug 26648: Prevent explosion in notices on missing item
The item accessor in Koha::Old::Checkouts could explode given a checkout
where the item had been deleted.

To test
1/ Edit the issueslip notice to output some item details from the
borrowers old checkouts

[% FOREACH old_checkout IN borrower.old_checkouts %]
  [% IF old_checkout.item %]
    [% old_checkout.item.price %]
  [% END %]
[% END %]

2/ Delete the item associated with an old checkout for a test patron
3/ Print the issueslip for the patron
4/ Note a server side error is triggered
5/ Apply the patch
6/ Print the slip again and note the price details for old checkouts are
now displayed
7/ Signoff

Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-10-12 09:56:43 -03:00
..
Biblio.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Biblioitem.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Biblioitems.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Biblios.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Checkout.pm Bug 26648: Prevent explosion in notices on missing item 2022-10-12 09:56:43 -03:00
Checkouts.pm Bug 30007: Make ->anonymize methods throw an exception if AnonymousPatron is not set 2022-03-01 22:47:47 -10:00
Hold.pm Bug 30007: Make ->anonymize methods throw an exception if AnonymousPatron is not set 2022-03-01 22:47:47 -10:00
Holds.pm Bug 30007: Make ->anonymize methods throw an exception if AnonymousPatron is not set 2022-03-01 22:47:47 -10:00
Item.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Items.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Patron.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Patrons.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00