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

(-)a/C4/Circulation.pm (-5 / +4 lines)
Lines 1814-1823 sub AddReturn { Link Here
1814
    }
1814
    }
1815
1815
1816
    my $itemnumber = $item->{ itemnumber };
1816
    my $itemnumber = $item->{ itemnumber };
1817
    my $biblio = GetBiblioData( $item->{ biblionumber } );
1817
1818
    my $itemtype   = ( C4::Context->preference("item-level_itypes") )
1818
    my $item_level_itypes = C4::Context->preference("item-level_itypes");
1819
                        ? $item->{ itype }
1819
    my $biblio   = $item_level_itypes ? undef : GetBiblioData( $item->{ biblionumber } ); # don't get bib data unless we need it
1820
                        : $biblio->{ itemtype };
1820
    my $itemtype = $item_level_itypes ? $item->{itype} : $biblio->{itemtype};
1821
1821
1822
    my $issue  = GetItemIssue($itemnumber);
1822
    my $issue  = GetItemIssue($itemnumber);
1823
    if ($issue and $issue->{borrowernumber}) {
1823
    if ($issue and $issue->{borrowernumber}) {
1824
- 

Return to bug 14598