Lines 90-96
sub new {
Link Here
|
90 |
my @missing = map { exists $params->{$_} ? () : $_ } @mandatory_keys; |
90 |
my @missing = map { exists $params->{$_} ? () : $_ } @mandatory_keys; |
91 |
Koha::Exceptions::MissingParameter->throw( parameter => join( ',', @missing ) ) if @missing; |
91 |
Koha::Exceptions::MissingParameter->throw( parameter => join( ',', @missing ) ) if @missing; |
92 |
|
92 |
|
93 |
my $datetime = Koha::Database->new->schema->storage->datetime_parser->format_datetime( dt_from_string() ); |
93 |
my $datetime = $params->{datetime} ? $params->{datetime} : dt_from_string(); |
94 |
return $class->SUPER::new( |
94 |
return $class->SUPER::new( |
95 |
{ |
95 |
{ |
96 |
borrowernumber => $params->{borrowernumber}, # no longer sending empty string (changed 2023) |
96 |
borrowernumber => $params->{borrowernumber}, # no longer sending empty string (changed 2023) |
97 |
- |
|
|