diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index a941a96790..2352e7c547 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -704,37 +704,36 @@ 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, $no_change = 0) { - + global $config; - + require_once($config['homedir'] . "/include/functions_post_process.php"); - - + $fields = post_process_get_custom_values(); + if($no_change != 0){ $fields[-1] = __('No change'); } $selected_float = (float)$selected; $found = false; - - if (array_key_exists($selected, $fields)) + + if (array_key_exists(number_format($selected, 14, '.', ','), $fields)) $found = true; - + if (!$found) { $fields[$selected] = floatval($selected); } - - + if ($unique_name === true) { $uniq_name = uniqid($name); } else { $uniq_name = $name; } - + ob_start(); - + echo '