From 9a7bc12c0cec20d162c39314a6e1b8e4f5ea3da3 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Thu, 15 May 2025 04:49:10 +0000 Subject: [PATCH] Bug 39406: Make serial issues sort from new to old on collection page This patch fixes the serial collection table to sort in descending order on the date published column. To test: 1. Create a subscription if you don't already have one. 2. Go to the Serial Collection tab using the left navigation. 3. Click the Generate Next button a bunch of times to generate some serial issues. Note that the issues are displaying in the table in ascending order, with the oldest date published at the top. 4. Apply the patch and refresh the page 5. Confirm the issues are now displaying in the table in descending order, with the newest date published at the top. 6. Click the Generate Next button again and confirm the issue is inserted at the top of the table. Sponsored-by: Pymble Ladies' College --- .../intranet-tmpl/prog/en/modules/serials/serials-collection.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt index bba3bd51256..ae63fadc809 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt @@ -360,7 +360,7 @@ $("#subscription_years a:first").tab("show"); } $(".subscription-year-table").kohaTable({ - order: [[0, "desc"]], + order: [[1, "desc"]], dom: "t", autoWidth: false, paging: false, -- 2.39.5