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

(-)a/Koha/REST/V1/Holds.pm (-8 / +4 lines)
Lines 257-267 sub edit { Link Here
257
257
258
        my $pickup_library_id = $body->{pickup_library_id};
258
        my $pickup_library_id = $body->{pickup_library_id};
259
259
260
        unless (
260
        if (
261
            !defined $pickup_library_id
261
            defined $pickup_library_id
262
            or $hold->is_pickup_location_valid(
262
            and not $hold->is_pickup_location_valid({ library_id => $pickup_library_id })
263
                { library_id => $pickup_library_id }
264
            )
265
          )
263
          )
266
        {
264
        {
267
            return $c->render(
265
            return $c->render(
Lines 272-279 sub edit { Link Here
272
            );
270
            );
273
        }
271
        }
274
272
275
        $pickup_library_id = $hold->branchcode
273
        $pickup_library_id    //= $hold->branchcode;
276
            unless defined $pickup_library_id;
277
        my $priority          = $body->{priority} // $hold->priority;
274
        my $priority          = $body->{priority} // $hold->priority;
278
        # suspended_until can also be set to undef
275
        # suspended_until can also be set to undef
279
        my $suspended_until   = exists $body->{suspended_until} ? $body->{suspended_until} : $hold->suspend_until;
276
        my $suspended_until   = exists $body->{suspended_until} ? $body->{suspended_until} : $hold->suspend_until;
280
- 

Return to bug 27205