preserve previous disabled or quiet condition when downtime is over

This commit is contained in:
alejandro.campos@artica.es 2023-08-07 17:04:48 +02:00
parent 68525f0a12
commit a4e186ae84
1 changed files with 0 additions and 12 deletions

View File

@ -701,18 +701,6 @@ function planned_downtimes_stop($downtime)
break;
case 'disable_agent_modules':
/*$update_sql = sprintf(
'UPDATE tagente_modulo tam, tagente ta, tplanned_downtime_modules tpdm
SET tam.disabled = 0, ta.update_module_count = 1
WHERE tpdm.id_agent_module = tam.id_agente_modulo AND
ta.id_agente = tam.id_agente AND
tpdm.id_downtime = %d',
$id_downtime
);
db_process_sql($update_sql);
$count = '';*/
$agents = db_get_all_rows_filter(
'tplanned_downtime_agents',
['id_downtime' => $id_downtime]