Use the combination of the 2 fields as data for the Type column

to allow correct sorting

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
RD WebDesign
2025-02-04 16:47:21 -03:00
parent edef3a8edb
commit 59bd0098df

View File

@@ -106,7 +106,7 @@ function initTable() {
{ data: "id", visible: false },
{ data: null, visible: true, orderable: false, width: "15px" },
{ data: "domain" },
{ data: "type", searchable: false },
{ data: null, searchable: false },
{ data: "enabled", searchable: false },
{ data: "comment" },
{ data: "groups", searchable: false },
@@ -120,6 +120,12 @@ function initTable() {
return "";
},
},
{
targets: 3,
render: function (data) {
return data.kind + "_" + data.type;
},
},
{
targets: "_all",
render: $.fn.dataTable.render.text(),