From fbb3e507e2fbda7261d8f08a302793256a7a5c1f Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Fri, 2 Oct 2015 09:10:33 +0200 Subject: [PATCH] Fixed problems with bulk module edit. Tiquet: #2837 (cherry picked from commit 05f45e2692e2637fd43d5afedab849360b344cfa) --- pandora_console/include/functions_modules.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/pandora_console/include/functions_modules.php b/pandora_console/include/functions_modules.php index 46e68325b4..9629b78f56 100644 --- a/pandora_console/include/functions_modules.php +++ b/pandora_console/include/functions_modules.php @@ -431,11 +431,21 @@ function modules_update_agent_module ($id, $values, $onlyNoDeletePending = false $result = @db_process_sql_update ('tagente_modulo', $values, $where); - if (($result === false) || ($result_disable === ERR_GENERIC)) { - return ERR_DB; + if ($result == false) { + if ($result_disable == ERR_GENERIC ){ + return ERR_DB; + } + else{ + return true; + } } else { - return true; + if ($result_disable == ERR_GENERIC ){ + return ERR_DB; + } + else{ + return true; + } } }