Fixed the separator (sometimes it is other) in the ajax call get_agent_modules_json_for_multiple_agents.
This commit is contained in:
parent
3cdbc74e1c
commit
6f71a01b0c
|
@ -66,8 +66,9 @@ if ($search_modules) {
|
|||
|
||||
|
||||
if ($get_module_detail) {
|
||||
|
||||
// This script is included manually to be included after jquery and avoid error
|
||||
ui_include_time_picker();
|
||||
ui_require_jquery_file("ui.datepicker-" . get_user_language(), "include/javascript/i18n/");
|
||||
|
||||
$module_id = (int)get_parameter('id_module');
|
||||
$period = get_parameter("period", SECONDS_1DAY);
|
||||
|
@ -80,8 +81,8 @@ if ($get_module_detail) {
|
|||
|
||||
|
||||
$group = agents_get_agentmodule_group ($module_id);
|
||||
$agentId = get_parameter("id_agent");
|
||||
$server_name = get_parameter('server_name');
|
||||
$agentId = (int) get_parameter("id_agent");
|
||||
$server_name = (string) get_parameter('server_name');
|
||||
|
||||
if (defined ('METACONSOLE')) {
|
||||
$server = metaconsole_get_connection ($server_name);
|
||||
|
@ -285,9 +286,8 @@ if ($get_module_detail) {
|
|||
html_print_table($table);
|
||||
}
|
||||
|
||||
if (defined ('METACONSOLE')) {
|
||||
if (defined ('METACONSOLE'))
|
||||
metaconsole_restore_db();
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -246,7 +246,12 @@ if (is_ajax ()) {
|
|||
|
||||
foreach ($idAgents as $idA) {
|
||||
if (empty($metaconsole_server_name)) {
|
||||
if (strstr($idA, "|@_@|")) {
|
||||
$row = explode ('|@_@|', $idA);
|
||||
}
|
||||
else {
|
||||
$row = explode ('|', $idA);
|
||||
}
|
||||
$server_name = $row[0];
|
||||
$id_agent = $row [1];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue