Fixed post process in Edit modules in bulk
This commit is contained in:
parent
ef22945b80
commit
cfc7050bab
|
@ -496,7 +496,7 @@ $table->data['edit3'][0] = __('Post process') .
|
|||
ui_print_help_icon ('postprocess', true);
|
||||
|
||||
$table->data['edit3'][1] = html_print_extended_select_for_post_process('post_process',
|
||||
0, '', 0, '', false, true, 'width:150px;', true);
|
||||
-1, '','', 0, false, true, 'width:150px;', true, false, 1);
|
||||
|
||||
$table->data['edit3'][2] = __('SMNP community');
|
||||
$table->data['edit3'][3] = html_print_input_text ('snmp_community', '',
|
||||
|
@ -1153,6 +1153,11 @@ function process_manage_edit ($module_name, $agents_select = null) {
|
|||
$values['plugin_pass'] = io_input_password($value);
|
||||
}
|
||||
break;
|
||||
case 'post_process':
|
||||
if($value !== '-1'){
|
||||
$values['post_process'] = $value;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if ($value != '') {
|
||||
$values[$field] = $value;
|
||||
|
|
|
@ -609,7 +609,7 @@ function html_print_select_from_sql ($sql, $name, $selected = '',
|
|||
function html_print_extended_select_for_post_process($name, $selected = '',
|
||||
$script = '', $nothing = '', $nothing_value = '0', $size = false,
|
||||
$return = false, $select_style = false, $unique_name = true,
|
||||
$disabled = false) {
|
||||
$disabled = false, $no_change = 0) {
|
||||
|
||||
global $config;
|
||||
|
||||
|
@ -617,6 +617,10 @@ function html_print_extended_select_for_post_process($name, $selected = '',
|
|||
|
||||
|
||||
$fields = post_process_get_custom_values();
|
||||
if($no_change != 0){
|
||||
$fields[-1] = __('No change');
|
||||
}
|
||||
|
||||
$selected_float = (float)$selected;
|
||||
$found = false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue