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

(-)a/Koha/Item.pm (+1 lines)
Lines 1286-1291 sub to_api { Link Here
1286
    my $overrides = {};
1286
    my $overrides = {};
1287
1287
1288
    $overrides->{effective_item_type_id} = $self->effective_itemtype;
1288
    $overrides->{effective_item_type_id} = $self->effective_itemtype;
1289
    $overrides->{effective_not_for_loan_status} = $self->notforloan ? $self->notforloan : $self->itemtype->notforloan;
1289
1290
1290
    return { %$response, %$overrides };
1291
    return { %$response, %$overrides };
1291
}
1292
}
(-)a/api/v1/swagger/definitions/item.yaml (-1 / +3 lines)
Lines 59-64 properties: Link Here
59
  not_for_loan_status:
59
  not_for_loan_status:
60
    type: integer
60
    type: integer
61
    description: Authorized value defining why this item is not for loan
61
    description: Authorized value defining why this item is not for loan
62
  effective_not_for_loan_status:
63
    type: integer
64
    description: Authorized value defining why this item is not for not_for_loan_status
62
  damaged_status:
65
  damaged_status:
63
    type: integer
66
    type: integer
64
    description: Authorized value defining this item as damaged
67
    description: Authorized value defining this item as damaged
65
- 

Return to bug 31128