From 489c636316209d4f4e7d8648cc5832347e792076 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 17 Oct 2018 19:21:56 -0300 Subject: [PATCH] Bug 21597: Incorrect date value: '0' for column 'onloan' Fix t/db_dependent/Holds/DisallowHoldIfItemsAvailable.t items.onloan `onloan` date DEFAULT NULL, DBIx::Class::Storage::DBI::_dbh_execute(): Incorrect date value: '0' for column 'onloan' at row 1 at /home/vagrant/kohaclone/t/lib/TestBuilder.pm line 288 Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize Signed-off-by: Nick Clemens --- t/db_dependent/Holds/DisallowHoldIfItemsAvailable.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Holds/DisallowHoldIfItemsAvailable.t b/t/db_dependent/Holds/DisallowHoldIfItemsAvailable.t index a5237d9aa3..645616c7cf 100755 --- a/t/db_dependent/Holds/DisallowHoldIfItemsAvailable.t +++ b/t/db_dependent/Holds/DisallowHoldIfItemsAvailable.t @@ -225,7 +225,7 @@ my $item3 = $builder->build({ notforloan => 0, withdrawn => 0, damaged => 0, - onloan => 0 + onloan => undef, } }); -- 2.39.5