From eb179d0ec0105fe8801c88ce0fe5c3bf7c2a2d8e Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 25 Jan 2019 11:16:41 -0500 Subject: [PATCH] Bug 20912: (QA follow-up): Fix up Koha::Fees Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens --- Koha/Fees.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Koha/Fees.pm b/Koha/Fees.pm index b2bfc4f0bd..33bf3aa64e 100644 --- a/Koha/Fees.pm +++ b/Koha/Fees.pm @@ -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'); -- 2.39.5