]> git.koha-community.org Git - koha.git/commit
Bug 18467: Handle orders with deleted biblio when viewing a basket
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 21 Apr 2017 16:05:47 +0000 (13:05 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 28 Apr 2017 10:44:05 +0000 (06:44 -0400)
commit21bddb399d7f88a33c6dff474d07190a09e627dc
treec3425950d73d3d6de612c8e5209103a63e40026e
parent21992c7eca3442e868b14cbbd55a5c8b5d59c102
Bug 18467: Handle orders with deleted biblio when viewing a basket

If the bibliographic record of an order has been removed, $order->{bibionumber}
is undefined. We need to handle this specific case correctly.

To test:
1 - Create a basket
2 - Order a bib
3 - Cancel order and delete record
4 - You cannot view basket
5 - Apply patch
6 - View basket
7 - There should not be an error
r calling count on undefined bib in basket.pl if order cancelled and
record deleted

Followed test plan, works as intended

Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
acqui/basket.pl