Koha/koha-tmpl/intranet-tmpl/prog/js
Jonathan Druart 5daa64ca10 Bug 30164: Fix datatable wrapper when no filter passed
This problem appears (at least) on the cities list view:
If you pass a filter in the "Search cities" filter in the header, it
won't be taken into account and all the cities will be displayed.

There are two problems. First we are passing an "empty" q=[] in the
body, the filter from the header is passed as URL parameters. We should
not need to pass the q if it's empty.
Then the main problem is coming from a bug in
Koha::REST::Plugin::Query but I didn't manage to track it down. If we
have two 2 passed, only the second one will be used. We are certainly
using a hash somewhere we should not.

This patch is fixing the bug but not on the correct side. A follow-up
bug should take care of the main problem at lower level.

Test plan:
Hit /admin/cities.pl
Create some cities
Use the filter in the header of the page and submit
=> Without this patch all cities are retrieved
=> With this patch applied only the relevant cities are displayed.

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-03-01 22:47:47 -10:00
..
pages Bug 29933: Fix stray usage of jquery.cookie.js plugin 2022-02-09 15:36:24 -10:00
acq.js
acquisitions-menu.js
additem.js Bug 29895: Fix 'add multiple items' button on neworderempty 2022-01-31 21:55:40 -10:00
addorderiso2709.js
admin-menu.js
ajax.js
audio_alerts.js
auth-finder-search.js
authorities-detail-modal.js Bug 29965: (QA follow-up) Fix translation issue in moved JS code 2022-02-23 22:05:33 -10:00
automatic_item_modification_by_age.js
background-job-progressbar.js
basket.js
basketgroup.js
biblio_framework.js
browser.js
calendar.js
cart.js
cashup_modal.js
catalog.js Bug 9565: (follow-up) Deleting a biblio should alert/fail if there are existent subscriptions 2021-12-10 21:15:30 -10:00
cataloging.js
cataloging_additem.js
categories.js Bug 29735: Remove flatpickr init from categories.js and holds.js 2022-01-13 16:37:33 -10:00
charts.js
checkouts.js Bug 29519: Allow resolution of claims return at checkin 2022-02-14 21:41:38 -10:00
circ-patron-search-results.js
datatables.js Bug 30164: Fix datatable wrapper when no filter passed 2022-03-01 22:47:47 -10:00
desk_selection.js
elasticsearch-mappings.js
file-upload.js
funds_sorts.js
holds.js Bug 30081: Use itemtype description instead of itemtype code 2022-02-16 11:51:11 -10:00
ill-availability-partner.js
ill-availability.js
ill-list-table.js
item_search_fields.js Bug 20689: (follow-up) Make it possible to add capital letter subfields to item search fields 2022-03-01 22:47:46 -10:00
letter.js
localcovers.js
mana.js
marc_modification_templates.js
marc_subfields_structure.js
members-menu.js
members.js Bug 29278: Fix selector of hint used to show age 2021-10-25 13:56:35 +02:00
merge-record.js
messaging-preference-form.js
offlinecirc.js
onboarding.js Bug 28982: Use Flatpickr on onboarding pages 2021-11-03 15:40:53 +01:00
register_selection.js
resolve_claim_modal.js Bug 29519: Allow resolution of claims return at checkin 2022-02-14 21:41:38 -10:00
rotating-collections.js
select2.js Bug 29397: Use kohaSelect for pickup locations 2022-02-10 14:44:23 -10:00
serials-toolbar.js
showpredictionpattern.js
sms_providers.js
staff-global.js Bug 29932: Use localStorage instead of cookie for bibs_selected 2022-02-09 15:36:24 -10:00
subscription-add.js Bug 26257: Move translatable strings out of subscription-add.tt and into subscription-add.js 2022-02-14 21:41:38 -10:00
table_filters.js
tools-menu.js
viewlog.js
xmlControlfield.js
z3950_search.js