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 |
- |
|
|