fixed minor errors and no show warnning in console to create agent groups

This commit is contained in:
daniel 2017-02-14 15:47:12 +01:00
parent c6dbf7c3b5
commit fb4cc26193
4 changed files with 10 additions and 5 deletions

View File

@ -98,7 +98,7 @@ else {
}
$table = new stdClass();
$table->width = '100%';
$table->class = 'databox filters';
if (defined("METACONSOLE")) {
@ -203,7 +203,9 @@ else
$sec = "gagente";
if (isset($config['metaconsole_node_id']) && $config['metaconsole_node_id'] > 0) {
$confirm_bottom = " onsubmit=' return message_check_create();'";
if(isset($config['metaconsole_agent_cache']) && $config['metaconsole_agent_cache'] == 1){
$confirm_bottom = " onsubmit=' return message_check_create();'";
}
}
else
{

View File

@ -187,6 +187,7 @@ foreach ($groups as $group_key => $group_val) {
// Format component groups in tree form
$groups = component_groups_get_groups_tree_recursive($groups_clean,0,0);
$table = new stdClass();
$table->width = '100%';
$table->class = 'databox data';
$table->head = array ();

View File

@ -44,6 +44,7 @@ else {
$parent = '';
}
$table = new stdClass();
$table->width = '100%';
$table->class = 'databox filters';

View File

@ -126,8 +126,9 @@ if (is_ajax ()) {
$id_group = (int) get_parameter('id_module_group');
$id_agents = get_parameter('id_agents');
$selection = get_parameter('selection');
$agents = implode(",", $id_agents);
if(!isset($id_agents)){
$agents = implode(",", $id_agents);
}
$filter_group = "";
$filter_agent = "";