View | Details | Raw Unified | Return to bug 39944
Collapse All | Expand All

(-)a/Koha/ILL/Request.pm (+24 lines)
Lines 2298-2303 sub can_patron_place_ill_in_opac { Link Here
2298
    return 1;
2298
    return 1;
2299
}
2299
}
2300
2300
2301
=head3 trim_form_params
2302
2303
    my $params = trim_form_params($params);
2304
2305
    Trims $params. Needed to ensure submitted data is not saved with leading or trailing white spaces:
2306
2307
    This:
2308
    {
2309
        'doi' => ' 123',
2310
    };
2311
2312
    Becomes:
2313
    {
2314
        'doi' => '123',
2315
    };
2316
2317
=cut
2318
2319
sub trim_form_params {
2320
    my ( $self, $params ) = @_;
2321
2322
    return { map { $_ => $params->{$_} =~ s/^\s+|\s+$//gr } keys %$params };
2323
}
2324
2301
=head3 get_history_check_requests
2325
=head3 get_history_check_requests
2302
2326
2303
    $self->get_history_check_requests();
2327
    $self->get_history_check_requests();
(-)a/ill/ill-requests.pl (-1 / +1 lines)
Lines 132-137 if ($backends_available) { Link Here
132
132
133
        # Load the ILL backend
133
        # Load the ILL backend
134
        my $request = Koha::ILL::Request->new->load_backend( $params->{backend} );
134
        my $request = Koha::ILL::Request->new->load_backend( $params->{backend} );
135
        $params = $request->trim_form_params($params);
135
136
136
        # Before request creation operations - Preparation
137
        # Before request creation operations - Preparation
137
        my $history_check   = Koha::ILL::Request::Workflow::HistoryCheck->new( $params, 'staff' );
138
        my $history_check   = Koha::ILL::Request::Workflow::HistoryCheck->new( $params, 'staff' );
138
- 

Return to bug 39944