Fix del bug #55

Aggiunto controllo prima dell'applicazione dei filtri derivanti dalla tabella zz_group_module.
This commit is contained in:
Thomas Zilio 2017-12-14 21:46:45 +01:00
parent f803f39058
commit 54881dfcb0
1 changed files with 8 additions and 7 deletions

View File

@ -52,12 +52,11 @@ if (!empty($module_query) && $module_query != 'menu' && $module_query != 'custom
$search_filters[] = str_replace('|search|', prepare('%'.$piece.'%'), $total['search_inside'][$i]);
}
} else {
//per le icone cerco per il campo icon_title
if (preg_match('/^icon_(.+?)$/', $total['search_inside'][$i], $m)) {
$total['search_inside'][$i] = "icon_title_".$m[1];
}
// Per le icone cerco per il campo icon_title
if (preg_match('/^icon_(.+?)$/', $total['search_inside'][$i], $m)) {
$total['search_inside'][$i] = 'icon_title_'.$m[1];
}
$search_filters[] = '`'.$total['search_inside'][$i].'` LIKE '.prepare('%'.trim($columns[$i]['search']['value'].'%'));
}
}
@ -68,7 +67,9 @@ if (!empty($module_query) && $module_query != 'menu' && $module_query != 'custom
}
// Filtri derivanti dai permessi (eventuali)
$module_query = Modules::replaceAdditionals($id_module, $module_query);
if (empty($id_plugin)) {
$module_query = Modules::replaceAdditionals($id_module, $module_query);
}
// Ordinamento dei risultati
if (isset($order['dir']) && isset($order['column'])) {