From 72af71569c49d0356d7bb22c1105589b13c9903e Mon Sep 17 00:00:00 2001 From: Thibaud Guillot Date: Tue, 28 May 2024 14:18:42 +0200 Subject: [PATCH] Bug 36974: Sort summary print by ascending due date Test plan: 1) Choose a patron with some checkouts 2) On print menu choose "Print summary" 3) Normally the list is sorted on descending due date.. and if the date is the same for multiple items, on issue_id (from database). 4) Apply this patch 5) Now the sort on due date is ascending to show the earliest due date on the first line. Sponsored by BibLibre --- members/summary-print.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/summary-print.pl b/members/summary-print.pl index 6c6ed923ec3..7d97cca1ca6 100755 --- a/members/summary-print.pl +++ b/members/summary-print.pl @@ -77,7 +77,7 @@ sub build_issue_data { return unless $patron; my $pending_checkouts = $patron->pending_checkouts->search( {}, - { order_by => [ { -desc => 'date_due' }, { -asc => 'issue_id' } ] } ); + { order_by => [ { -asc => 'date_due' }, { -asc => 'issue_id' } ] } ); my @checkouts; -- 2.30.2