Bug 20912: (QA follow-up): Fix up Koha::Fees

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Kyle M Hall 2019-01-25 11:16:41 -05:00 committed by Nick Clemens
parent 84647ff006
commit eb179d0ec0
1 changed files with 4 additions and 4 deletions

View File

@ -47,13 +47,13 @@ sub new {
my ( $class, $params ) = @_;
Koha::Exceptions::MissingParameter->throw("Missing mandatory parameter: patron")
unless $patron;
unless $params->{patron};
Koha::Exceptions::MissingParameter->throw("Missing mandatory parameter: library")
unless $library;
unless $params->{library};
Koha::Exceptions::MissingParameter->throw("Missing mandatory parameter: item")
unless $item;
unless $params->{item};
Koha::Exceptions::MissingParameter->throw("Missing mandatory parameter: to_date")
unless $to_date;
unless $params->{to_date};
Carp::confess("Key 'patron' is not a Koha::Patron object!")
unless $params->{patron}->isa('Koha::Patron');