From a7890809d9eb4a63a6a4f750b3ebb49042452306 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Mon, 5 Jun 2017 13:52:01 +0200 Subject: [PATCH] [SIGNED-OFF] Bug 18728 - use html filter in suggestions datatable sort In suggestions datatable one can sort on colums "Suggested by" or "Managed by". Those columns may contain HTML tags. Use datatable sorting type html to have a correct sorting. Test plan : - Be sure to have some suggestions asked and managed - Go to Acquisitions > Suggestions - Click on "Suggested by" to sort => Table is sorted by the user name - Click on "Managed by" to sort => Table is sorted by the user name Signed-off-by: Josef Moravec --- koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt index 62335e8..f7eb4e2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -54,7 +54,8 @@ $(document).ready(function() { $(".sorted").dataTable($.extend(true, {}, dataTablesDefaults, { "aoColumnDefs": [ { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }, - { "sType": "anti-the", "aTargets" : [ "anti-the" ] } + { "sType": "anti-the", "aTargets" : [ "anti-the" ] }, + { "sType": "html", "aTargets" : [ "stype-html" ] }, ], "sPaginationType": "four_button" })); @@ -528,8 +529,8 @@ h4.local_collapse a { font-size : 80%; text-decoration: none; } fieldset.brief o   No. Suggestion - Suggested by - on - Managed by - on + Suggested by - on + Managed by - on Library Fund Status -- 2.1.4