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 select box has only one element then show it as text
|
||||||
if ((sizeof($this->elements) == 1) && !$this->multiSelect && $this->transformSingleSelect) {
|
if ((sizeof($this->elements) == 1) && !$this->multiSelect && $this->transformSingleSelect) {
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
echo ' ';
|
||||||
if ($this->hasDescriptiveElements) {
|
if ($this->hasDescriptiveElements) {
|
||||||
$keys = array_keys($this->elements);
|
$keys = array_keys($this->elements);
|
||||||
echo $keys[0];
|
echo $keys[0];
|
||||||
|
@ -1327,7 +1328,6 @@ class htmlSelect extends htmlElement {
|
||||||
else {
|
else {
|
||||||
echo $this->elements[0];
|
echo $this->elements[0];
|
||||||
}
|
}
|
||||||
echo ' ';
|
|
||||||
}
|
}
|
||||||
elseif (sizeof($this->elements) == 0) {
|
elseif (sizeof($this->elements) == 0) {
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
Loading…
Reference in New Issue