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 161-166 if ($backends_available) { Link Here
161
161
162
            # Ready to create ILL request
162
            # Ready to create ILL request
163
        } else {
163
        } else {
164
            $params = $request->trim_form_params($params);
164
            my $backend_result = $request->backend_create($params);
165
            my $backend_result = $request->backend_create($params);
165
166
166
            # After creation actions
167
            # After creation actions
167
- 

Return to bug 39944