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

(-)a/t/db_dependent/Circulation/Returns.t (-2 / +1 lines)
Lines 81-87 subtest 'Handle ids duplication' => sub { Link Here
81
    $builder->build({ source => 'OldIssue', value => { issue_id => $checkout->issue_id } });
81
    $builder->build({ source => 'OldIssue', value => { issue_id => $checkout->issue_id } });
82
82
83
    my @a = AddReturn( $item->{barcode} );
83
    my @a = AddReturn( $item->{barcode} );
84
    my $old_checkout = Koha::Old::Checkouts->find( $checkout->issue_id );
84
    my $old_checkout = Koha::OldIssues->find( $checkout->issue_id );
85
    isnt( $old_checkout->itemnumber, $item->{itemnumber}, 'If an item is checked-in, it should be moved to old_issues even if the issue_id already existed in the table' );
85
    isnt( $old_checkout->itemnumber, $item->{itemnumber}, 'If an item is checked-in, it should be moved to old_issues even if the issue_id already existed in the table' );
86
};
86
};
87
87
88
- 

Return to bug 18242