mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#9334 Fixed satellite host 2
This commit is contained in:
parent
6babb50608
commit
ee83cbf155
@ -291,8 +291,9 @@ class SatelliteAgent extends HTML
|
||||
$agents_db = db_get_all_rows_sql(
|
||||
sprintf(
|
||||
'SELECT id_agente, alias AS name, direccion AS address,
|
||||
IF(disabled = 0, INSERT("add_host", 0 , 0, ""), INSERT("ignore_host", 0 , 0, "")) AS type
|
||||
FROM tagente WHERE `satellite_server` = %d AND modo = 1',
|
||||
IF(disabled = 0, INSERT("add_host", 0 , 0, ""),
|
||||
IF(modo = 1, INSERT("ignore_host", 0 , 0, ""), INSERT("delete_host", 0, 0, ""))) AS type
|
||||
FROM tagente WHERE `satellite_server` = %d',
|
||||
$this->satellite_server
|
||||
)
|
||||
);
|
||||
@ -1279,6 +1280,7 @@ class SatelliteAgent extends HTML
|
||||
$.each(checks, function(i, val) {
|
||||
const params = val.value.split(",");
|
||||
if (action === '0') {
|
||||
if (params[2] === '0') {
|
||||
$.ajax({
|
||||
method: 'post',
|
||||
async: false,
|
||||
@ -1300,7 +1302,9 @@ class SatelliteAgent extends HTML
|
||||
console.error(e);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else {
|
||||
if (params[3] === '0') {
|
||||
$.ajax({
|
||||
method: 'post',
|
||||
async: false,
|
||||
@ -1323,6 +1327,7 @@ class SatelliteAgent extends HTML
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
var dt_satellite_agents = $("#satellite_agents").DataTable();
|
||||
|
Loading…
x
Reference in New Issue
Block a user