From 04e72b2a6dc2ddfe24c824ceb3adeeda6bc3c923 Mon Sep 17 00:00:00 2001 From: Thomas Zilio Date: Thu, 8 Feb 2018 11:04:26 +0100 Subject: [PATCH] Fix bug su colore righe datatables --- ajax_dataload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ajax_dataload.php b/ajax_dataload.php index 92178f71c..0cd3dc021 100644 --- a/ajax_dataload.php +++ b/ajax_dataload.php @@ -126,7 +126,7 @@ if (!empty($module_query) && $module_query != 'menu' && $module_query != 'custom } // Allineamento al centro se il valore della prima riga risulta relativo a date o icone - elseif (Translator::getFormatter()->isStandardDate($value) || preg_match('/^icontr(.+?)$/', $field)) { + elseif (Translator::getFormatter()->isStandardDate($value) || preg_match('/^icon_(.+?)$/', $field)) { $align[$field] = 'text-center'; } } @@ -162,7 +162,7 @@ if (!empty($module_query) && $module_query != 'menu' && $module_query != 'custom } // Icona - if (preg_match('/^colortr(.+?)$/', $field, $m)) { + if (preg_match('/^color_(.+?)$/', $field, $m)) { $value = $r['color_title_'.$m[1]] ?: ''; $column['class'] = 'text-center small';