From 8e8859bfe7d64e98c313b88fb1cdbd319ffa6a11 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 12 Oct 2018 14:26:44 -0300 Subject: [PATCH] Bug 21467: Fix default sort MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sponsored-by: BULAC - http://www.bulac.fr/ Signed-off-by: Séverine QUEUNE --- .../intranet-tmpl/prog/en/modules/serials/subscription-detail.tt | 6 +----- serials/subscription-detail.pl | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt index 5cbbb9bc39..4f4fe026e0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt @@ -358,7 +358,6 @@ - Timestamp Invoice Basket Order number @@ -380,7 +379,6 @@ [% ELSE %] [% END %] - [% order.timestamp | html %] [% IF order.invoice %] [% IF CAN_user_acquisition %] @@ -472,9 +470,7 @@ 'bPaginate': false, 'bAutoWidth': false, - 'bSort': true, - 'aaSortingFixed': [[ 0, 'desc' ]], - "bSortCellsTop": true + 'bSort': false, }, columns_settings); $(table).treetable({ diff --git a/serials/subscription-detail.pl b/serials/subscription-detail.pl index 4eefe181f3..701a46f406 100755 --- a/serials/subscription-detail.pl +++ b/serials/subscription-detail.pl @@ -129,7 +129,7 @@ for my $field ( @$additional_fields ) { $template->param( additional_fields_for_subscription => $additional_fields ); # FIXME Do we want to hide canceled orders? -my $orders = Koha::Acquisition::Orders->search( { subscriptionid => $subscriptionid } ); +my $orders = Koha::Acquisition::Orders->search( { subscriptionid => $subscriptionid }, { order_by => { -desc => 'parent_ordernumber' } } ); $template->param( subscriptionid => $subscriptionid, -- 2.11.0