Merge branch 'ent-4784-Selector-de-intervalo-en-bulks-pule-el-conf-de-los-agentes-con-remote-dependiendo-de-la-opción-que-seleccionemos' into 'develop'

Ent 4784 selector de intervalo en bulks pule el conf de los agentes con remote dependiendo de la opción que seleccionemos

See merge request artica/pandorafms!2800
This commit is contained in:
Alejandro Fraguas 2019-10-16 14:16:13 +02:00
commit 039d854441
1 changed files with 5 additions and 3 deletions

View File

@ -59,8 +59,10 @@ if ($update_agents) {
$values['id_grupo'] = get_parameter('group'); $values['id_grupo'] = get_parameter('group');
} }
if (get_parameter('interval', 0) != 0) { if (!(get_parameter('interval_select') == -1 && empty(get_parameter('interval_text')))) {
$values['intervalo'] = get_parameter('interval'); if (get_parameter('interval', 0) != 0) {
$values['intervalo'] = get_parameter('interval');
}
} }
if (get_parameter('id_os', '') != -1) { if (get_parameter('id_os', '') != -1) {
@ -523,7 +525,7 @@ $table->data[1][1] = html_print_select_groups(false, 'AR', false, 'group', $grou
$table->data[2][0] = __('Interval'); $table->data[2][0] = __('Interval');
$table->data[2][1] = html_print_extended_select_for_time('interval', 0, '', __('No change'), '0', 10, true, 'width: 150px'); $table->data[2][1] = html_print_extended_select_for_time('interval', 0, '', __('No change'), '0', 10, true, 'width: 150px', false);
$table->data[3][0] = __('OS'); $table->data[3][0] = __('OS');
$table->data[3][1] = html_print_select_from_sql( $table->data[3][1] = html_print_select_from_sql(