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

(-)a/Koha/Item.pm (-5 / +4 lines)
Lines 1756-1769 Overloaded to_api method to ensure item-level itypes is adhered to. Link Here
1756
=cut
1756
=cut
1757
1757
1758
sub to_api {
1758
sub to_api {
1759
    my ($self, $params) = @_;
1759
    my ( $self, $params ) = @_;
1760
1760
1761
    my $response = $self->SUPER::to_api($params);
1761
    my $response = $self->SUPER::to_api($params);
1762
    my $overrides = {};
1763
1764
    $overrides->{effective_item_type_id} = $self->effective_itemtype;
1765
1762
1763
    my $overrides = {};
1764
    $overrides->{effective_item_type_id}        = $self->effective_itemtype;
1766
    $overrides->{effective_not_for_loan_status} = $self->effective_not_for_loan_status;
1765
    $overrides->{effective_not_for_loan_status} = $self->effective_not_for_loan_status;
1766
    $overrides->{effective_bookable}            = $self->effective_bookable;
1767
1767
1768
    return { %$response, %$overrides };
1768
    return { %$response, %$overrides };
1769
}
1769
}
1770
- 

Return to bug 35906