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

(-)a/Koha/REST/V1/Holds.pm (-1 lines)
Lines 537-543 sub update_pickup_location { Link Here
537
537
538
        my $error_code =
538
        my $error_code =
539
              $hold->is_waiting       ? 'hold_waiting'
539
              $hold->is_waiting       ? 'hold_waiting'
540
            : $hold->is_in_transit    ? 'hold_in_transit'
541
            : $hold->is_in_processing ? 'hold_in_processing'
540
            : $hold->is_in_processing ? 'hold_in_processing'
542
            :                           undef;
541
            :                           undef;
543
542
(-)a/t/db_dependent/api/v1/holds.t (-3 / +2 lines)
Lines 1419-1426 subtest 'PUT /holds/{hold_id}/pickup_location tests' => sub { Link Here
1419
1419
1420
    $t->put_ok( "//$userid:$password@/api/v1/holds/"
1420
    $t->put_ok( "//$userid:$password@/api/v1/holds/"
1421
            . $in_transit_hold->id
1421
            . $in_transit_hold->id
1422
            . "/pickup_location" => json => { pickup_library_id => $library_2->branchcode } )->status_is(409)
1422
            . "/pickup_location" => json => { pickup_library_id => $library_2->branchcode } )->status_is(200)
1423
        ->json_is( { error => q{Cannot change pickup location}, error_code => 'hold_in_transit' } );
1423
        ->json_is( { pickup_library_id => $library_2->branchcode } );
1424
1424
1425
    $schema->storage->txn_rollback;
1425
    $schema->storage->txn_rollback;
1426
};
1426
};
1427
- 

Return to bug 34024