]> git.koha-community.org Git - koha.git/commit
Bug 37466: Add correct filter for sort_by in results.tt
authorDavid Cook <dcook@prosentient.com.au>
Thu, 25 Jul 2024 06:44:37 +0000 (06:44 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 13 Aug 2024 05:03:21 +0000 (02:03 -0300)
commitcd9daf104ee5e3e7351810de7f0ba0bbe9bd8e59
tree8075491feaeb9ef203d583c744ec6b88e1e6516f
parent4b6cf589fd575f61ce70a32dc0869ec60ec9cf60
Bug 37466: Add correct filter for sort_by in results.tt

This patch replaces the $raw filter with the correct uri filter
for the sort_by in results.tt

Test plan:
1. Apply patch
2. Go to /cgi-bin/koha/catalogue/search.pl?count=20&sort_by=popularity_dsc&idx=kw&q=1
3. Click on "Edit this search"
4. Note that the "Popularity (most to least)" Sort by option is selected
5. Go to /cgi-bin/koha/catalogue/search.pl?count=20&sort_by=popularity_dsc&idx=kw&q=24y24ty2498294t9824yt9y23
6. Click on "Edit this search"
7. Note that the "Popularity (most to least)" Sort by option is selected

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt