Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Nick Clemens 3489cdca1f
Bug 32301: Fix default search sorting in advanced search when not editing a search
Bug 22605 changed the sorting to expect the passed parameter from the
previous search, this broke default when the search page was loaded
fresh.

We should simply fallback from the edited search to the default if it is
not set

To test:
1) Go to staff client
2) Go to Advanced Search
3) Notice the default Sort By value is "Relevance"
4) Go to system preferences
5) Go to "defaultSortField"
6) Change the value of the system preference
7) Go back to Advanced Search and refresh the page
8) Notice that there are no changes, the default Sort By is still
"Relevance"
9) Apply patch
10) Notice that changing the system preference now changes the default
Sort By in Advanced Search
11) Perform a search, change the sorting, then edit the search
12) Confirm the correct sorting from the search is preserved

Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-04-12 09:26:51 -03:00
..
acqui Bug 32003: Add page-section to order search results and fix heading hierarchy 2023-03-27 12:49:59 +02:00
admin Bug 30403: Add syspref UpdateNotForLoanStatusOnCheckout 2023-04-06 10:45:04 -03:00
authorities Bug 30930: Ability to change auth type while editing record 2023-04-06 10:03:18 -03:00
basket Bug 33160: (QA follow-up) Adjust condition on biblio object 2023-04-06 09:47:24 -03:00
batch
catalogue Bug 32301: Fix default search sorting in advanced search when not editing a search 2023-04-12 09:26:51 -03:00
cataloguing Bug 33148: Use template wrapper for breadcrumbs: Cataloging 2023-04-06 09:29:25 -03:00
circ Bug 31615: Allow checkin of items bundles without verifying their contents 2023-04-06 10:45:03 -03:00
clubs
course_reserves Bug 33070: Remove use of can_edit_items 2023-03-17 09:59:02 -03:00
erm Bug 32924: Add the ability to filter agreement by logged in user 2023-03-07 15:03:41 -03:00
errors Bug 32973: Use template wrapper for breadcrumbs: about, main, and error page 2023-02-27 11:39:31 -03:00
ill Bug 21548: ILLLIBS patron category / partner_code seems extraneous 2023-03-31 12:14:51 +02:00
installer
labels
mana
members Bug 32634: (follow-up) Restructure page headings 2023-04-10 07:38:55 -03:00
offline_circ Bug 32634: Add 'page-section' to various pages 2023-04-10 07:38:54 -03:00
onboarding
patron_lists
patroncards Bug 32634: Add 'page-section' to various pages 2023-04-10 07:38:54 -03:00
plugins Bug 33189: Make plugin upload look for .kpz files in file picker 2023-03-10 10:17:04 -03:00
pos
recalls
reports Bug 32634: Add 'page-section' to various pages 2023-04-10 07:38:54 -03:00
reserve
reviews
rotating_collections Bug 32954: Standardize action fieldsets in rotating collections, suggestions, tools 2023-03-31 12:33:13 +02:00
serials Bug 32771: Standardize structure around action fieldsets in serials 2023-03-31 12:30:37 +02:00
services
suggestion Bug 33322: (QA follow-up) Add comment to clarify selector context 2023-03-31 18:41:38 +02:00
tags
test
tools Bug 32164: Add link to MARC modification templates from batch record modification page 2023-04-06 09:47:28 -03:00
virtualshelves Bug 32634: Add 'page-section' to various pages 2023-04-10 07:38:54 -03:00
about.tt Bug 21548: ILLLIBS patron category / partner_code seems extraneous 2023-03-31 12:14:51 +02:00
auth.tt Bug 32217: Fixed typo in error message for authentication providers 2023-03-30 12:09:39 +02:00
intranet-main.tt Bug 33133: Add fast cataloging to 'Cataloging' page 2023-03-27 12:50:07 +02:00