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

(-)a/Koha/Item.pm (-2 / +4 lines)
Lines 1470-1476 sub to_api { Link Here
1470
    my $overrides = {};
1470
    my $overrides = {};
1471
1471
1472
    $overrides->{effective_item_type_id} = $self->effective_itemtype;
1472
    $overrides->{effective_item_type_id} = $self->effective_itemtype;
1473
    $overrides->{effective_not_for_loan_status} = $self->notforloan ? $self->notforloan : $self->itemtype->notforloan;
1473
1474
    my $itype_notforloan = $self->itemtype->notforloan;
1475
    $overrides->{effective_not_for_loan_status} =
1476
        ( defined $itype_notforloan && !$self->notforloan ) ? $itype_notforloan : $self->notforloan;
1474
1477
1475
    return { %$response, %$overrides };
1478
    return { %$response, %$overrides };
1476
}
1479
}
1477
- 

Return to bug 35167