From 6520ff3c5fdd3b556a5498cf6a1961acaee2b98d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 24 Jul 2025 12:20:46 +0200 Subject: [PATCH] Bug 40198: Restore data provider search Uncaught TypeError: col.data is undefined This patch removes the ability to * search by status * search or sort by "last run" But fix the JS error that will restore the other features Test plan: - Activate the ERMModule via the system preference - Add at least one data provider - In the list of data providers, type anything in the general search field on top => Confirm that you can use the different features of the table without JS errors Signed-off-by: Michaela Signed-off-by: Marcel de Rooy Signed-off-by: Lucas Gass (cherry picked from commit bd52dab4118eb4ea04eb5dfacc51aba746ef4f83) Signed-off-by: Paul Derscheid (cherry picked from commit 3396a46c28d632a50be7f3be19648de5ba4359ad) Signed-off-by: Fridolin Somers --- .../components/ERM/UsageStatisticsDataProvidersList.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersList.vue index b0421f8cf7..5cf6a0eab3 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersList.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersList.vue @@ -325,18 +325,19 @@ export default { }, { title: __("Status"), + data: "active", render: function (data, type, row, meta) { const status = row.active ? "Active" : "Inactive" return status }, - searchable: true, + searchable: false, orderable: true, }, { title: __("Last run"), data: "last_run", - searchable: true, - orderable: true, + searchable: false, + orderable: false, }, ] },