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

(-)a/catalogue/stockrotation.pl (-1 / +2 lines)
Lines 78-84 if (!defined $op) { Link Here
78
        },
78
        },
79
        {
79
        {
80
            join     => 'stockrotationstages',
80
            join     => 'stockrotationstages',
81
            collapse => 1
81
            collapse => 1,
82
            order_by => 'title'
82
        }
83
        }
83
    );
84
    );
84
85
(-)a/misc/cronjobs/stockrotation.pl (-1 / +1 lines)
Lines 500-506 sub emit { Link Here
500
#### Main Code
500
#### Main Code
501
501
502
# Compile Stockrotation Report data
502
# Compile Stockrotation Report data
503
my $rotas = Koha::StockRotationRotas->search;
503
my $rotas = Koha::StockRotationRotas->search(undef,{ order_by => { '-asc' => 'title' }});
504
my $data  = $rotas->investigate;
504
my $data  = $rotas->investigate;
505
505
506
# Perform db updates if requested
506
# Perform db updates if requested
(-)a/tools/stockrotation.pl (-2 / +6 lines)
Lines 69-75 my $op = $params{op}; Link Here
69
if (!defined $op) {
69
if (!defined $op) {
70
70
71
    # No operation is supplied, we're just displaying the list of rotas
71
    # No operation is supplied, we're just displaying the list of rotas
72
    my $rotas = Koha::StockRotationRotas->search->as_list;
72
    my $rotas = Koha::StockRotationRotas->search(
73
        undef,
74
        { 
75
            order_by => { -asc => 'title' }
76
        }
77
    )->as_list;
73
78
74
    $template->param(
79
    $template->param(
75
        existing_rotas => $rotas,
80
        existing_rotas => $rotas,
76
- 

Return to bug 11897