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

(-)a/opac/opac-illrequests.pl (-2 / +1 lines)
Lines 74-79 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
74
# Are we able to actually work?
74
# Are we able to actually work?
75
my $patron   = Koha::Patrons->find($loggedinuser);
75
my $patron   = Koha::Patrons->find($loggedinuser);
76
my $backends = Koha::ILL::Request::Config->new->opac_available_backends($patron);
76
my $backends = Koha::ILL::Request::Config->new->opac_available_backends($patron);
77
$params->{backend} = 'Standard' if $params->{backend} eq 'FreeForm';
77
78
78
if ( $params->{backend} && !grep { $_ eq $params->{backend} } @$backends ) {
79
if ( $params->{backend} && !grep { $_ eq $params->{backend} } @$backends ) {
79
    print $query->redirect("/cgi-bin/koha/errors/404.pl");
80
    print $query->redirect("/cgi-bin/koha/errors/404.pl");
Lines 131-137 if ( $op eq 'list' ) { Link Here
131
            );
132
            );
132
        }
133
        }
133
134
134
        $params->{backend} = 'Standard' if $params->{backend} eq 'FreeForm';
135
        my $request = Koha::ILL::Request->new->load_backend( $params->{backend} );
135
        my $request = Koha::ILL::Request->new->load_backend( $params->{backend} );
136
136
137
        # Before request creation operations - Preparation
137
        # Before request creation operations - Preparation
138
- 

Return to bug 41204