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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +1 lines)
Lines 51-57 Circulation: Link Here
51
              choices:
51
              choices:
52
                  asc: earliest to latest
52
                  asc: earliest to latest
53
                  desc: latest to earliest
53
                  desc: latest to earliest
54
            - due date.
54
            - checkout time.
55
        -
55
        -
56
            - pref: SpecifyDueDate
56
            - pref: SpecifyDueDate
57
              choices:
57
              choices:
(-)a/svc/checkouts (-3 / +2 lines)
Lines 267-279 while ( my $c = $sth->fetchrow_hashref() ) { Link Here
267
267
268
@checkouts_today = sort { $a->{timestamp} cmp $b->{timestamp} } @checkouts_today;    # latest to earliest
268
@checkouts_today = sort { $a->{timestamp} cmp $b->{timestamp} } @checkouts_today;    # latest to earliest
269
@checkouts_today = reverse(@checkouts_today)
269
@checkouts_today = reverse(@checkouts_today)
270
  unless ( C4::Context->preference('todaysIssuesDefaultSortOrder') eq 'desc' );      # earliest to latest
270
  if ( C4::Context->preference('todaysIssuesDefaultSortOrder') eq 'desc' );      # earliest to latest
271
271
272
@checkouts_previous =
272
@checkouts_previous =
273
  sort { $a->{date_due} cmp $b->{date_due} || $a->{timestamp} cmp $b->{timestamp} }
273
  sort { $a->{date_due} cmp $b->{date_due} || $a->{timestamp} cmp $b->{timestamp} }
274
  @checkouts_previous;                                                               # latest to earliest
274
  @checkouts_previous;                                                               # latest to earliest
275
@checkouts_previous = reverse(@checkouts_previous)
275
@checkouts_previous = reverse(@checkouts_previous)
276
  unless ( C4::Context->preference('previousIssuesDefaultSortOrder') eq 'desc' );    # earliest to latest
276
  if ( C4::Context->preference('previousIssuesDefaultSortOrder') eq 'desc' );    # earliest to latest
277
277
278
my @checkouts = ( @checkouts_today, @checkouts_previous );
278
my @checkouts = ( @checkouts_today, @checkouts_previous );
279
279
280
- 

Return to bug 24456