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

(-)a/C4/Circulation.pm (-1 / +1 lines)
Lines 2877-2883 sub AddRenewal { Link Here
2877
                    VALUES (now(),?,?,?,?,?,?,?,?)"
2877
                    VALUES (now(),?,?,?,?,?,?,?,?)"
2878
        );
2878
        );
2879
        $sth->execute( $borrowernumber, $accountno, $charge, $manager_id,
2879
        $sth->execute( $borrowernumber, $accountno, $charge, $manager_id,
2880
            "Renewal of Rental Item " . $item_object->title . " $item->{'barcode'}",
2880
            "Renewal of Rental Item " . $biblio->title . " $item->{'barcode'}",
2881
            'Rent', $charge, $itemnumber );
2881
            'Rent', $charge, $itemnumber );
2882
    }
2882
    }
2883
2883
(-)a/t/db_dependent/Circulation/Returns.t (-2 / +2 lines)
Lines 175-181 subtest "AddReturn logging on statistics table (item-level_itypes=1)" => sub { Link Here
175
    is( $stat->itemtype, $ilevel_itemtype,
175
    is( $stat->itemtype, $ilevel_itemtype,
176
        "item-level itype recorded on statistics for return");
176
        "item-level itype recorded on statistics for return");
177
    warning_like { AddIssue( $borrower, $item_without_itemtype->{ barcode } ) }
177
    warning_like { AddIssue( $borrower, $item_without_itemtype->{ barcode } ) }
178
                 qr/^item-level_itypes set but no itemtype set for item/,
178
                 [qr/^item-level_itypes set but no itemtype set for item/,
179
                 qr/^item-level_itypes set but no itemtype set for item/],
179
                 'Item without itemtype set raises warning on AddIssue';
180
                 'Item without itemtype set raises warning on AddIssue';
180
    warning_like { AddReturn( $item_without_itemtype->{ barcode }, $branch ) }
181
    warning_like { AddReturn( $item_without_itemtype->{ barcode }, $branch ) }
181
                 qr/^item-level_itypes set but no itemtype set for item/,
182
                 qr/^item-level_itypes set but no itemtype set for item/,
182
- 

Return to bug 18276