fix for multi selects

This commit is contained in:
Roland Gruber 2010-06-12 17:54:37 +00:00
parent 9222d9cbb8
commit 467f4ae563
1 changed files with 3 additions and 2 deletions

View File

@ -414,12 +414,13 @@ class htmlSelect implements htmlElement {
if (isset($values[$this->name])) {
$this->selectedElements = $values[$this->name];
}
$name = ' name="' . $this->name . '"';
$size = ' size="' . $this->size . '"';
$multi = '';
if ($this->multiSelect) {
$multi = ' multiple';
$this->name = $this->name . '[]';
}
$name = ' name="' . $this->name . '"';
$size = ' size="' . $this->size . '"';
echo '<select' . $name . $size . $multi . ' tabindex="' . $tabindex . "\">\n";
$tabindex++;
// sorting