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

(-)a/Koha/Schema/Result/Item.pm (-2 / +3 lines)
Lines 623-631 sub effective_itemtype { Link Here
623
    my ( $self ) = @_;
623
    my ( $self ) = @_;
624
624
625
    my $pref = $self->result_source->schema->resultset('Systempreference')->find('item-level_itypes');
625
    my $pref = $self->result_source->schema->resultset('Systempreference')->find('item-level_itypes');
626
    if ( $pref->value() ) {
626
    if ( $pref->value() && $self->itype() ) {
627
        return $self->itype();
627
        return $self->itype();
628
    } else {
628
    } else {
629
        warn "item-level_itypes set but no itemtype set for item ($self->itemnumber)"
630
          if $pref->value();
629
        return $self->biblioitemnumber()->itemtype();
631
        return $self->biblioitemnumber()->itemtype();
630
    }
632
    }
631
}
633
}
632
- 

Return to bug 14651