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

(-)a/Koha/REST/V1/Holds.pm (-1 / +9 lines)
Lines 533-539 sub update_pickup_location { Link Here
533
533
534
    return try {
534
    return try {
535
535
536
        $hold->set_pickup_location({ library_id => $pickup_library_id });
536
        my $overrides    = $c->stash('koha.overrides');
537
        my $can_override = $overrides->{any} && C4::Context->preference('AllowHoldPolicyOverride');
538
539
        $hold->set_pickup_location(
540
            {
541
                library_id => $pickup_library_id,
542
                override   => $can_override
543
            }
544
        );
537
545
538
        return $c->render(
546
        return $c->render(
539
            status  => 200,
547
            status  => 200,
(-)a/api/v1/swagger/paths/holds.json (-1 / +7 lines)
Lines 628-633 Link Here
628
      "operationId": "getHoldPickupLocations",
628
      "operationId": "getHoldPickupLocations",
629
      "tags": ["holds"],
629
      "tags": ["holds"],
630
      "parameters": [
630
      "parameters": [
631
        {
632
          "name": "x-koha-override",
633
          "description": "Comma-separated list of overrides (valid values: any)",
634
          "in": "header",
635
          "type": "string",
636
          "required": false
637
        },
631
        {
638
        {
632
          "$ref": "../parameters.json#/hold_id_pp"
639
          "$ref": "../parameters.json#/hold_id_pp"
633
        },
640
        },
634
- 

Return to bug 28254