From 0c60f13ccdfb3cd0c2b28650eb64b1e07fa56101 Mon Sep 17 00:00:00 2001 From: Luis Calvo Date: Tue, 17 Sep 2019 19:54:34 +0200 Subject: [PATCH] Event column instructions maked unsortabe --- pandora_console/operation/events/events.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index 786743b8d0..851bce345a 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -1247,6 +1247,14 @@ try { ]; } + // Identifies column instructions to make it unsortable. + if (in_array('instructions', $fields) > 0) { + $fields[array_search('instructions', $fields)] = [ + 'text' => 'instructions', + 'class' => 'column-instructions', + ]; + } + $evento_id = array_search('evento', $fields); if ($evento_id !== false) { $fields[$evento_id] = [ @@ -1411,6 +1419,7 @@ try { 'no_sortable_columns' => [ -1, -2, + 'column-instructions', ], 'ajax_postprocess' => 'process_datatables_item(item)', 'drawCallback' => 'process_datatables_callback(this, settings)',