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:
parent
84647ff006
commit
eb179d0ec0
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in New Issue