Merge branch 'ent-4419-error-sql-filtrar-instrucciones-de-evento' into 'develop'

Event column instructions maked unsortabe

See merge request artica/pandorafms!2733
This commit is contained in:
Daniel Rodriguez 2019-09-18 10:58:36 +02:00
commit c20fcd6366
1 changed files with 9 additions and 0 deletions

View File

@ -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)',