fixed issues with single select box
This commit is contained in:
parent
877d35362b
commit
3cabf78630
|
@ -1320,6 +1320,7 @@ class htmlSelect extends htmlElement {
|
|||
// if select box has only one element then show it as text
|
||||
if ((sizeof($this->elements) == 1) && !$this->multiSelect && $this->transformSingleSelect) {
|
||||
echo '</div>';
|
||||
echo ' ';
|
||||
if ($this->hasDescriptiveElements) {
|
||||
$keys = array_keys($this->elements);
|
||||
echo $keys[0];
|
||||
|
@ -1327,7 +1328,6 @@ class htmlSelect extends htmlElement {
|
|||
else {
|
||||
echo $this->elements[0];
|
||||
}
|
||||
echo ' ';
|
||||
}
|
||||
elseif (sizeof($this->elements) == 0) {
|
||||
echo '</div>';
|
||||
|
|
Loading…
Reference in New Issue