Skip to content

Commit

Permalink
fix(admininfo): fix checkbox with spaces for snmp
Browse files Browse the repository at this point in the history
  • Loading branch information
charleneauger committed Jul 12, 2023
1 parent bca01b7 commit 2e2d34f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/main_sections/ms_snmp_inventory/ms_snmp_detail.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@
if ((isset($temp_field[1]) && isset($info_account_id[$getType][$getId]) && (array_key_exists($temp_field[0] . '_' . $temp_field[1], $info_account_id[$getType][$getId]))) || $temp_field[0] == 'TAG') {
//cas of checkbox
if (isset($temp_field[2])) {
$data_fields_account[$temp_field[0] . "_" . $temp_field[1]] .= $temp_field[2] . "&&&";
$temp_field2 = $temp_field;
unset($temp_field2[0]);
unset($temp_field2[1]);
$new_value = implode(' ', $temp_field2);
$data_fields_account[$temp_field[0] . "_" . $temp_field[1]] .= $new_value . "&&&";
} else {
$data_fields_account[$field] = $value;
}
Expand Down

0 comments on commit 2e2d34f

Please sign in to comment.