Afected modules keep tag register when delete agent #4216 Resize sort icon #4220

(cherry picked from commit a1d731f71b)
This commit is contained in:
enriquecd 2016-11-23 19:26:51 +01:00
parent c237ba55a8
commit bb9303c0ba
5 changed files with 1 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1021 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1017 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1021 B

After

Width:  |  Height:  |  Size: 214 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1017 B

After

Width:  |  Height:  |  Size: 216 B

View File

@ -1879,7 +1879,7 @@ function agents_delete_agent ($id_agents, $disableACL = false) {
//And at long last, the agent
db_process_delete_temp ("tagente", "id_agente", $id_agent);
db_process_sql ("delete from ttag_module where id_agente_modulo = (select id_agente_modulo from tagente_modulo where id_agente = ".$id_agent.")");
db_process_sql ("delete from ttag_module where id_agente_modulo in (select id_agente_modulo from tagente_modulo where id_agente = ".$id_agent.")");
db_pandora_audit( "Agent management",
"Deleted agent '$agent_name'");