From 57102597f24cd3f0a38c958b7f75019a3020641a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 23 Feb 2018 12:55:48 -0300 Subject: [PATCH] Bug 20287: There is a warning, we just want to unset the value here Signed-off-by: Josef Moravec Signed-off-by: Tomas Cohen Arazi Signed-off-by: Martin Renvoize --- t/db_dependent/Members.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Members.t b/t/db_dependent/Members.t index 71cdec6f48..b9a2e3fccf 100755 --- a/t/db_dependent/Members.t +++ b/t/db_dependent/Members.t @@ -295,7 +295,7 @@ $patstodel = GetBorrowersToExpunge( {expired_before => '2015-01-02', patron_list ok( scalar(@$patstodel) == 1 && $patstodel->[0]->{'borrowernumber'} eq $bor2inlist,'Guarantor patron not deleted by expirationdate and list'); $patstodel = GetBorrowersToExpunge( {not_borrowed_since => '2016-01-02', patron_list_id => $list1->patron_list_id() } ); ok( scalar(@$patstodel) == 1 && $patstodel->[0]->{'borrowernumber'} eq $bor2inlist,'Guarantor patron not deleted by last issue date'); -Koha::Patrons->find($guarantee->{borrowernumber})->set({ guarantorid => '' })->store; +Koha::Patrons->find($guarantee->{borrowernumber})->set({ guarantorid => undef })->store; $builder->build({ source => 'Issue', -- 2.11.0