Added condition to query

This commit is contained in:
Arturo Gonzalez 2017-08-30 16:26:06 +02:00
parent 0594a7bcbc
commit 573a0f5534
2 changed files with 149 additions and 150 deletions

View File

@ -120,7 +120,8 @@ if ($searchModules) {
) )
AND AND
(t1.nombre COLLATE utf8_general_ci LIKE "%' . $stringSearchSQL . '%" OR (t1.nombre COLLATE utf8_general_ci LIKE "%' . $stringSearchSQL . '%" OR
t3.nombre LIKE "%' . $stringSearchSQL . '%")'; t3.nombre LIKE "%' . $stringSearchSQL . '%")
AND t1.disabled = 0';
break; break;
case "postgresql": case "postgresql":
$chunk_sql = ' $chunk_sql = '

View File

@ -73,7 +73,6 @@ else {
'nombre', 'web_content_string'); 'nombre', 'web_content_string');
foreach ($modules as $module) { foreach ($modules as $module) {
if(!$module['disabled']){
$module["datos"] = $module["datos"] =
modules_get_last_value($module['id_agente_modulo']); modules_get_last_value($module['id_agente_modulo']);
$module["module_name"] = $module['nombre']; $module["module_name"] = $module['nombre'];
@ -223,7 +222,6 @@ else {
$timestampCell, $timestampCell,
$edit_module)); $edit_module));
} }
}
echo "<br />"; echo "<br />";
ui_pagination ($totalModules); ui_pagination ($totalModules);