From c764a4fc71b5f7ed369904298caad25f68528eda Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 7 Nov 2016 16:08:02 -0300 Subject: [PATCH] Bug 17575: (followup) Remove missing fine type warnings Content-Type: text/plain; charset=utf-8 Sponsored-by: ByWater Solutions Signed-off-by: Josef Moravec Signed-off-by: Marcel de Rooy --- t/db_dependent/Circulation.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index 0fe2872..f29dcd0 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -840,7 +840,8 @@ C4::Context->dbh->do("DELETE FROM accountlines"); issue_id => $issue->id(), itemnumber => $itemnumber, borrowernumber => $borrowernumber, - amount => 0 + amount => 0, + type => q{} } ); @@ -1007,6 +1008,7 @@ C4::Context->dbh->do("DELETE FROM accountlines"); itemnumber => $itemnumber, borrowernumber => $patron->{borrowernumber}, amount => 1, + type => q{} } ); UpdateFine( @@ -1015,6 +1017,7 @@ C4::Context->dbh->do("DELETE FROM accountlines"); itemnumber => $itemnumber, borrowernumber => $patron->{borrowernumber}, amount => 2, + type => q{} } ); is( Koha::Account::Lines->search({ issue_id => $issue->id })->count, 1, 'UpdateFine should not create a new accountline when updating an existing fine'); -- 2.1.4