Browse Source

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 <andrew@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.05.x
Jonathan Druart 2 years ago
parent
commit
25f391b00d
  1. 2
      koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt

2
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 %]

Loading…
Cancel
Save