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:
commit
c20fcd6366
|
@ -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)',
|
||||
|
|
Loading…
Reference in New Issue