To test: - Create a basket - Add an order to the basket - Add a second order for the same bib number - Delete the basket, selecting "Delete Basket, Orders, and Records" - Receive error "Can't call method "subscriptions" on an undefined value at /usr/share/koha/intranet/cgi-bin/acqui/basket.pl line 137" Looks like Koha deletes the bib when deleting the first aqorders line and then tried to delete it again when deleting the second aqorders line.