mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#11167 Adjusted the action so that the message Could not be disabled is not displayed when deleting an agent
This commit is contained in:
parent
ba5e3a0f08
commit
c6e1b08885
@ -229,7 +229,7 @@ if ($enable_agent > 0) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($disable_agent > 0) {
|
if ($disable_agent > 0 && $agent_to_delete === 0) {
|
||||||
$result = db_process_sql_update('tagente', ['disabled' => 1], ['id_agente' => $disable_agent]);
|
$result = db_process_sql_update('tagente', ['disabled' => 1], ['id_agente' => $disable_agent]);
|
||||||
$alias = io_safe_output(agents_get_alias($disable_agent));
|
$alias = io_safe_output(agents_get_alias($disable_agent));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user