fixed minor error post process create agent
This commit is contained in:
parent
2dc5bc1139
commit
590373ab93
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue