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

(-)a/Koha/Item.pm (-5 / +4 lines)
Lines 1790-1803 Overloaded to_api method to ensure item-level itypes is adhered to. Link Here
1790
=cut
1790
=cut
1791
1791
1792
sub to_api {
1792
sub to_api {
1793
    my ($self, $params) = @_;
1793
    my ( $self, $params ) = @_;
1794
1794
1795
    my $response = $self->SUPER::to_api($params);
1795
    my $response = $self->SUPER::to_api($params);
1796
    my $overrides = {};
1797
1798
    $overrides->{effective_item_type_id} = $self->effective_itemtype;
1799
1796
1797
    my $overrides = {};
1798
    $overrides->{effective_item_type_id}        = $self->effective_itemtype;
1800
    $overrides->{effective_not_for_loan_status} = $self->effective_not_for_loan_status;
1799
    $overrides->{effective_not_for_loan_status} = $self->effective_not_for_loan_status;
1800
    $overrides->{effective_bookable}            = $self->effective_bookable;
1801
1801
1802
    return { %$response, %$overrides };
1802
    return { %$response, %$overrides };
1803
}
1803
}
1804
- 

Return to bug 35906