From d934a738b2baf8fdc0a2e63d283f7bf777585e36 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 --- 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 120fe0b320..6d2c70d3c8 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 089c723113..8dc2e52ccf 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.46.0