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

(-)a/svc/checkouts (-5 / +4 lines)
Lines 239-251 while ( my $c = $sth->fetchrow_hashref() ) { Link Here
239
}
239
}
240
240
241
241
242
@checkouts_today = sort { $a->{timestamp} cmp $b->{timestamp} } @checkouts_today;
242
@checkouts_today = sort { $a->{timestamp} cmp $b->{timestamp} } @checkouts_today;    # latest to earliest
243
@checkouts_today = reverse(@checkouts_today)
243
@checkouts_today = reverse(@checkouts_today)
244
  unless ( C4::Context->preference('todaysIssuesDefaultSortOrder') eq 'desc' );
244
  unless ( C4::Context->preference('todaysIssuesDefaultSortOrder') eq 'desc' );      # earliest to latest
245
245
246
@checkouts_previous = sort { $a->{date_due} cmp $b->{date_due} } @checkouts_previous;
246
@checkouts_previous = sort { $a->{date_due} cmp $b->{date_due} } @checkouts_previous;    # latest to earliest
247
@checkouts_previous = reverse(@checkouts_previous)
247
@checkouts_previous = reverse(@checkouts_previous)
248
  if ( C4::Context->preference('previousIssuesDefaultSortOrder') eq 'desc' );
248
  unless ( C4::Context->preference('previousIssuesDefaultSortOrder') eq 'desc' );    # earliest to latest
249
249
250
my @checkouts = ( @checkouts_today, @checkouts_previous );
250
my @checkouts = ( @checkouts_today, @checkouts_previous );
251
251
252
- 

Return to bug 23427