2013-08-28 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/module_manager_editor_common.php: added code to policy module editor with disabled unknown events modules. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8708 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
c90f5ff7ff
commit
a87218f09e
|
@ -1,3 +1,8 @@
|
|||
2013-08-28 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* godmode/agentes/module_manager_editor_common.php: added code to
|
||||
policy module editor with disabled unknown events modules.
|
||||
|
||||
2013-08-28 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_modules.php: fixed the massive copy modules
|
||||
|
|
|
@ -345,9 +345,20 @@ $table_advanced->data[4][1] = html_print_select_from_sql ('SELECT id, name FROM
|
|||
'id_export', $id_export, '', $none_text, '0', true, false, false, $disabled_export).ui_print_help_tip (__('In case you use an Export server you can link this module and export data to one these.'), true);
|
||||
$table_advanced->colspan[4][1] = 2;
|
||||
|
||||
// Code comes from module_editor
|
||||
if ($__code_from == 'modules') {
|
||||
$throw_unknown_events_check =
|
||||
!modules_is_disable_type_event($id_agent_module, EVENTS_GOING_UNKNOWN);
|
||||
}
|
||||
else {
|
||||
global $__id_pol_mod;
|
||||
|
||||
$throw_unknown_events_check =
|
||||
!policy_module_is_disable_type_event($__id_pol_mod, EVENTS_GOING_UNKNOWN);
|
||||
}
|
||||
$table_advanced->data[4][3] = __('Throw unknown events');
|
||||
$table_advanced->data[4][4] = html_print_checkbox('throw_unknown_events',
|
||||
1, !modules_is_disable_type_event($id_agent_module, EVENTS_GOING_UNKNOWN), true);
|
||||
1, $throw_unknown_events_check, true);
|
||||
|
||||
$table_advanced->data[5][0] = __('Unit');
|
||||
$table_advanced->data[5][1] = html_print_input_text ('unit', $unit,
|
||||
|
|
Loading…
Reference in New Issue