Fixed problems with post process select in updated module form. Ticket: #4182

(cherry picked from commit 789fde7eb1)
This commit is contained in:
m-lopez-f 2016-11-14 10:52:37 +01:00
parent 843c0c3fba
commit 904ab2ba52
1 changed files with 5 additions and 14 deletions

View File

@ -612,18 +612,12 @@ function html_print_extended_select_for_post_process($name, $selected = '',
$fields = post_process_get_custom_values();
$selected_float = (float)$selected;
$found = false;
foreach ($fields as $value => $text) {
$value = (float)$value;
if ($value == $selected_float) {
$found = true;
break;
}
}
if (array_key_exists($selected, $fields))
$found = true;
if (!$found) {
$fields[floatval($selected)] = floatval($selected);
$fields[$selected] = floatval($selected);
}
@ -634,9 +628,6 @@ function html_print_extended_select_for_post_process($name, $selected = '',
$uniq_name = $name;
}
ob_start();
echo '<div id="' . $uniq_name . '_default" style="width:100%;display:inline;">';