fixed minor error post process create agent

This commit is contained in:
daniel 2018-07-31 15:25:44 +02:00
parent 2dc5bc1139
commit 590373ab93
1 changed files with 16 additions and 20 deletions

View File

@ -709,8 +709,8 @@ function html_print_extended_select_for_post_process($name, $selected = '',
require_once($config['homedir'] . "/include/functions_post_process.php");
$fields = post_process_get_custom_values();
if($no_change != 0){
$fields[-1] = __('No change');
}
@ -718,14 +718,13 @@ function html_print_extended_select_for_post_process($name, $selected = '',
$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);
}
@ -770,9 +769,6 @@ function html_print_extended_select_for_post_process($name, $selected = '',
$returnString = ob_get_clean();
if ($return)
return $returnString;
else