Bug 32417: Allow NULL in biblionumber in $order->store
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 7 Dec 2022 13:27:02 +0000 (13:27 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 15 Dec 2022 13:34:40 +0000 (13:34 +0000)
commit6f756b7c234d393895abf3790554cad202874f73
tree3a2d203b0a5fa3fa069ad188599bdc501fde9688
parent8bc2fccd78d3cddf2d25054ec513f41943e853c7
Bug 32417: Allow NULL in biblionumber in $order->store

If we are cancelling an order and call DelBiblio, we should
clear the biblionumber but not be crashing on it in ->store.

The absence of the clear prevented the crash. One bug sometimes
solves another one.

Test plan:
Create basket, order line.
Delete order with biblio record.
Verify result and logfile.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit d9186728919a1a41d56c4c8686e0197c746f7fa1)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Acquisition/Order.pm