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

(-)a/t/db_dependent/StockRotationItems.t (-1 / +1 lines)
Lines 267-273 subtest "Tests for needs_advancing." => sub { Link Here
267
    )->store;
267
    )->store;
268
    is($dbitem->needs_advancing, 1, "Ready to be advanced.");
268
    is($dbitem->needs_advancing, 1, "Ready to be advanced.");
269
    $dbtransfer->delete;
269
    $dbtransfer->delete;
270
    warning_is {$dbitem->needs_advancing} "We have no historical branch transfer for itemnumber " . $dbitem->item->itemnumber . "; This should not have happened!", "Missing transfer is warned.";
270
    warning_is {$dbitem->needs_advancing} "We have no historical branch transfer for item " . $dbitem->item->itemnumber . "; This should not have happened!", "Missing transfer is warned.";
271
271
272
    $schema->storage->txn_rollback;
272
    $schema->storage->txn_rollback;
273
};
273
};
(-)a/tools/stockrotation.pl (-2 / +1 lines)
Lines 252-258 if (!defined $op) { Link Here
252
252
253
    # Get all items on this rota, for each prefetch their
253
    # Get all items on this rota, for each prefetch their
254
    # stage and biblio objects
254
    # stage and biblio objects
255
    my $items = Koha::StockRotationItems->search(
255
    my $sritems = Koha::StockRotationItems->search(
256
        { 'stage.rota_id' => $params{rota_id} },
256
        { 'stage.rota_id' => $params{rota_id} },
257
        {
257
        {
258
            prefetch => {
258
            prefetch => {
259
- 

Return to bug 28909