From 5bb409c3fb1179ffda85d319f796fa627f7f0f34 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 7 Nov 2016 16:08:02 -0300 Subject: [PATCH] [SIGNED-OFF] Bug 17575: (followup) Remove missing fine type warnings Sponsored-by: ByWater Solutions Signed-off-by: Josef Moravec --- 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