From 93b2d0b2e49d5c54acf347797bf0c78d742cf590 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Mon, 5 Jun 2017 13:52:01 +0200 Subject: [PATCH] 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 --- 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.7.4