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

(-)a/Koha/Illrequest.pm (-2 / +3 lines)
Lines 536-546 Migrate a request from one backend to another. Link Here
536
sub backend_migrate {
536
sub backend_migrate {
537
    my ( $self, $params ) = @_;
537
    my ( $self, $params ) = @_;
538
538
539
    my $response = $self->_backend->migrate({
539
    my $response = $self->_backend_capability('migrate',{
540
            request    => $self,
540
            request    => $self,
541
            other      => $params,
541
            other      => $params,
542
        });
542
        });
543
    return $self->expandTemplate($response);
543
    return $self->expandTemplate($response) if $response;
544
    return $response;
544
}
545
}
545
546
546
=head2 backend_confirm
547
=head2 backend_confirm
(-)a/ill/ill-requests.pl (-5 / +20 lines)
Lines 93-102 if ( $backends_available ) { Link Here
93
        if ( $params->{backend} ) {
93
        if ( $params->{backend} ) {
94
            my $new_request = Koha::Illrequest->new->load_backend( $params->{backend} );
94
            my $new_request = Koha::Illrequest->new->load_backend( $params->{backend} );
95
            $backend_result = $new_request->backend_migrate($params);
95
            $backend_result = $new_request->backend_migrate($params);
96
            $template->param(
96
            if ($backend_result) {
97
                whole   => $backend_result,
97
                $template->param(
98
                request => $new_request
98
                    whole   => $backend_result,
99
            );
99
                    request => $new_request
100
                );
101
            } else {
102
                # backend failure
103
                $backend_result = {
104
                    stage => 'commit',
105
                    next  => 'illview',
106
                    error => {
107
                        message => 'Migrating to backedn does not support migrate',
108
                        status => 'Migrating to backedn does not support migrate'
109
                    }
110
                };
111
                $template->param(
112
                    whole   => $backend_result,
113
                    request => $request
114
                );
115
            }
100
        }
116
        }
101
        else {
117
        else {
102
            $request = Koha::Illrequests->find( $params->{illrequest_id} );
118
            $request = Koha::Illrequests->find( $params->{illrequest_id} );
103
- 

Return to bug 20640