SMP3 network component template fix, now load all fields - #3292

This commit is contained in:
enriquecd 2016-10-24 12:55:24 +02:00
parent eb838c785e
commit c20110aa91
2 changed files with 4 additions and 4 deletions

View File

@ -57,7 +57,7 @@ $data = array();
$data[0] = __('Auth user');
$data[1] = html_print_input_text ('snmp3_auth_user', $snmp3_auth_user, '', 15, 60, true);
$data[2] = __('Auth password');
$data[3] = html_print_input_text ('snmp3_auth_pass', $snmp3_auth_pass, '', 15, 60, true);
$data[3] = html_print_input_password ('snmp3_auth_pass', $snmp3_auth_pass, '', 15, 60, true);
$data[3] .= html_print_input_hidden('active_snmp_v3', 0, true);
push_table_row($data, 'field_snmpv3_row1');
@ -65,7 +65,7 @@ $data = array();
$data[0] = __('Privacy method');
$data[1] = html_print_select(array('DES' => __('DES'), 'AES' => __('AES')), 'snmp3_privacy_method', $snmp3_privacy_method, '', '', '', true);
$data[2] = __('Privacy pass');
$data[3] = html_print_input_text ('snmp3_privacy_pass', $snmp3_privacy_pass, '', 15, 60, true);
$data[3] = html_print_input_password ('snmp3_privacy_pass', $snmp3_privacy_pass, '', 15, 60, true);
push_table_row($data, 'field_snmpv3_row2');
$data = array();

View File

@ -359,10 +359,10 @@ function configure_modules_form () {
if (data["type"] >= 15 && data["type"] <= 18) {
$("#snmp_version").val(data["tcp_send"]);
$("#text-snmp3_auth_user").val(data["plugin_user"]);
$("#text-snmp3_auth_pass").val(data["plugin_pass"]);
$("#password-snmp3_auth_pass").val(data["plugin_pass"]);
$("#snmp3_auth_method").val(data["plugin_parameter"]);
$("#snmp3_privacy_method").val(data["custom_string_1"]);
$("#text-snmp3_privacy_pass").val(data["custom_string_2"]);
$("#password-snmp3_privacy_pass").val(data["custom_string_2"]);
$("#snmp3_security_level").val(data["custom_string_3"]);
if (data["tcp_send"] == "3") {