From 6c3555bd6118eb4774c1832742baa2c2297e5059 Mon Sep 17 00:00:00 2001 From: Paul Derscheid Date: Thu, 8 Aug 2024 07:38:05 +0000 Subject: [PATCH] Bug 37574: (follow-up) disable ordering and searching on status column Signed-off-by: Owen Leonard Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt | 4 ++-- koha-tmpl/intranet-tmpl/prog/js/tables/bookings.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt index f6d9447908..e8f7e72554 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt @@ -233,8 +233,8 @@ data: "", title: __("Status"), name: "status", - searchable: true, - orderable: true, + searchable: false, + orderable: false, visible: false, render: function (data, type, row, meta) { let is_expired = dayjs(row.end_date).isBefore(new Date()); diff --git a/koha-tmpl/intranet-tmpl/prog/js/tables/bookings.js b/koha-tmpl/intranet-tmpl/prog/js/tables/bookings.js index fa3469c062..aabc664265 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/tables/bookings.js +++ b/koha-tmpl/intranet-tmpl/prog/js/tables/bookings.js @@ -36,8 +36,8 @@ $(document).ready(function () { data: "", title: __("Status"), name: "status", - searchable: true, - orderable: true, + searchable: false, + orderable: false, render: function (data, type, row, meta) { let is_expired = dayjs(row.end_date).isBefore( new Date() -- 2.39.5