From 9455ef1c7b49f5218585fecccdcaf44d3946492f Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 31 Oct 2024 14:53:49 +0000 Subject: [PATCH] Bug 38315: Add expired class to expired patrons in patron search results Content-Type: text/plain; charset=utf-8 To test: 0. APPLY PATCH 1. Have some expired patrons 2. Do a search that will return some expired patrons and some not expired. 3. Look at the 'Expires on' column. 4. The expired patrons should have an expired class set and the date should be red/italic. Signed-off-by: David Nind Signed-off-by: Marcel de Rooy --- koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc index 87afa1e7c9..9c890eede2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -601,7 +601,7 @@ "searchable": true, "orderable": true, "render": function( data, type, row, meta ) { - return data ? escape_str($date(data)) : ""; + return "" + (data ? escape_str($date(data)) : '') + ""; } } [% CASE 'borrowernotes' %] -- 2.39.5