This commit is contained in:
Ad Schellevis 2015-04-09 17:57:59 +02:00
parent 64528499f8
commit 35537e5e89

View File

@ -73,9 +73,9 @@ class OptionField extends BaseField
$result = array ();
foreach ($this->internalOptionList as $optKey => $optValue) {
if ($optKey == $this->internalValue) {
$selected = 0;
} else {
$selected = 1;
} else {
$selected = 0;
}
$result[$optKey] = array("value"=>$optKey,"description" => $optValue, "selected" => $selected);
}