]> git.koha-community.org Git - koha.git/commit
Bug 3873: Avoid software error if the cart contains a deleted record
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 25 Mar 2015 08:39:02 +0000 (09:39 +0100)
committerChris Cormack <chris@bigballofwax.co.nz>
Thu, 2 Apr 2015 20:47:09 +0000 (09:47 +1300)
commit1206d13fd9392f8d944ef191634738ad8ee21ed3
treed964e9f2acf82bd580d365ca3fb0ccc3e554a589
parent5c14b7ba9c53f784f7b42f24f0755d60909ab3f9
Bug 3873: Avoid software error if the cart contains a deleted record

If a record is placed in the basket and deleted, the basket view
exploded with:
Can't use an undefined value as an ARRAY reference at
/home/koha/src/basket/basket.pl line 73.

Test plan:
1/ Add some records to the basket
2/ Delete one of them
3/ Look at your basket
It should not exploded

Note that the number of items in the basket is now wrong.

Works as expected.
Signed-off-by: Marc Veron <veron@veron.ch>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 4c4c870dfee59ebe6386dbd8a7b75a55f75217f9)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
basket/basket.pl