From 467f4ae563fa533047f4d0ab1a558476fdb17b4e Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 12 Jun 2010 17:54:37 +0000 Subject: [PATCH] fix for multi selects --- lam/lib/html.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lam/lib/html.inc b/lam/lib/html.inc index 9d9da4ef..98917a16 100644 --- a/lam/lib/html.inc +++ b/lam/lib/html.inc @@ -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 '\n"; $tabindex++; // sorting