From 75a1c276c73e44ea3e51f6583cbed3675a0413f4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 2 Mar 2021 12:22:27 +0100 Subject: [PATCH] Bug 27813: Restore default order on suggestion list view Prior to 20.05, suggestions on /cgi-bin/koha/suggestion/suggestion.pl sorted by suggesteddate by default. On 20.05 and later, they're sorting by title instead. We should go back to the previous behavior. Test plan: Create some suggestions Edit the suggestions.suggesteddate in the DB List the suggestions and confirm that there are sorted by oldest first Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart (cherry picked from commit 25f391b00df34f452e341039abf448c780df1d7d) Signed-off-by: Fridolin Somers --- .../intranet-tmpl/prog/en/modules/suggestion/suggestion.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt index 6b1713a773..a1ac50ec96 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -1270,7 +1270,7 @@ [% FOREACH suggestion IN suggestions %] [% IF ( suggestion.suggestions_loop ) %] KohaTable("table_[% loop.count| html %]", { - "sorting": [[ 1, "asc" ]], + "sorting": [[ 3, "asc" ]], "autoWidth": false, }, columns_settings ); [% END %] -- 2.39.5