From 2cff98d9e6abb7aa80515d526b34b1924dfefa69 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 18 Jan 2021 11:14:09 +0100 Subject: [PATCH] Bug 27251: Fix sort by displayed_on --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt index da6b6b6a50..136ba3735a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt @@ -178,7 +178,8 @@ "orderable": true }, { - "data": function( row, type, val, meta ) { + "data": "displayed_on", + "render": function(data, type, row, meta) { return $datetime(row.displayed_on); }, "searchable": true, -- 2.20.1