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

(-)a/C4/Circulation.pm (-5 / +4 lines)
Lines 1863-1872 sub AddReturn { Link Here
1863
    }
1863
    }
1864
1864
1865
    my $itemnumber = $item->{ itemnumber };
1865
    my $itemnumber = $item->{ itemnumber };
1866
    my $biblio = GetBiblioData( $item->{ biblionumber } );
1866
1867
    my $itemtype   = ( C4::Context->preference("item-level_itypes") )
1867
    my $item_level_itypes = C4::Context->preference("item-level_itypes");
1868
                        ? $item->{ itype }
1868
    my $biblio   = $item_level_itypes ? undef : GetBiblioData( $item->{ biblionumber } ); # don't get bib data unless we need it
1869
                        : $biblio->{ itemtype };
1869
    my $itemtype = $item_level_itypes ? $item->{itype} : $biblio->{itemtype};
1870
1870
1871
    my $issue  = GetItemIssue($itemnumber);
1871
    my $issue  = GetItemIssue($itemnumber);
1872
    if ($issue and $issue->{borrowernumber}) {
1872
    if ($issue and $issue->{borrowernumber}) {
1873
- 

Return to bug 14598