Fixed problems with remplace data when module is part of policy. Tiquet: #2853

(cherry picked from commit 0b1099e4c3)
This commit is contained in:
m-lopez-f 2015-10-21 12:24:06 +02:00
parent 45f56ebf32
commit 0462d5db03
1 changed files with 5 additions and 1 deletions

View File

@ -101,7 +101,11 @@ else {
$data[3] = html_print_select ($snmp_versions, 'snmp_version', 0, '', '',
'', true, false, false, '', $disabledBecauseInPolicy);
}
if($disabledBecauseInPolicy){
if ($id_module_type >= 15 && $id_module_type <= 18) {
$data[3] .= html_print_input_hidden ('snmp_version', $tcp_send, true);
}
}
push_table_simple ($data, 'snmp_1');
$data = array ();