2013-11-14 Sergio Martin <sergio.martin@artica.es>

* godmode/agentes/configurar_agente.php
	godmode/agentes/module_manager_editor_common.php: Fix module interval
	updation in software modules. The interval of this kind of modules
	only can be updated by server when agent reports
	Interval #379



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9076 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2013-11-14 10:14:58 +00:00
parent 4b489a1eb9
commit 86ae300a40
3 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2013-11-14 Sergio Martin <sergio.martin@artica.es>
* godmode/agentes/configurar_agente.php
godmode/agentes/module_manager_editor_common.php: Fix module interval
updation in software modules. The interval of this kind of modules
only can be updated by server when agent reports
Interval #379
2013-11-13 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_html.php: fixed the checks for duplicate images

View File

@ -961,6 +961,12 @@ if ($update_module) {
'disabled_types_event' => $disabled_types_event,
'module_macros' => $module_macros);
// In local modules, the interval is updated by agent
$module_kind = (int) get_parameter ('moduletype');
if ($module_kind == MODULE_DATA) {
unset($values['module_interval']);
}
if ($prediction_module == 3 && $serialize_ops == '') {
$result = false;
}

View File

@ -111,8 +111,6 @@ if (strstr($page, "policy_modules") === false && $id_agent_module) {
$update_module_id = (int) get_parameter_get ('update_module');
html_print_input_hidden ('moduletype', $moduletype);
$table_simple->id = 'simple';
$table_simple->width = '98%';
$table_simple->class = 'databox_color';
@ -332,6 +330,8 @@ else {
$table_advanced->data[2][1] = html_print_extended_select_for_time ('module_interval' , $interval, '', '', '0', false, true, false, false);
}
$table_advanced->data[2][1] .= html_print_input_hidden ('moduletype', $moduletype, true);
$table_advanced->data[2][3] = __('Post process').' ' . ui_print_help_icon ('postprocess', true);
$table_advanced->data[2][4] = html_print_input_text ('post_process',
$post_process, '', 15, 25, true, $disabledBecauseInPolicy);