projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added modification info to swap role operation.
[timetracker.git]
/
WEB-INF
/
lib
/
form
/
Form.class.php
diff --git
a/WEB-INF/lib/form/Form.class.php
b/WEB-INF/lib/form/Form.class.php
index
5a4baa9
..
19dd011
100644
(file)
--- a/
WEB-INF/lib/form/Form.class.php
+++ b/
WEB-INF/lib/form/Form.class.php
@@
-110,6
+110,10
@@
class Form {
$el = new Combobox($params["name"]);
$el->setData(@$params["data"]);
$el->setDataDefault(@$params["empty"]);
$el = new Combobox($params["name"]);
$el->setData(@$params["data"]);
$el->setDataDefault(@$params["empty"]);
+ if (isset($params["multiple"])) {
+ $el->setMultiple($params["multiple"]);
+ $el->name .= '[]'; // Add brackets to the end of name to get back an array on POST.
+ }
if (isset($params["datakeys"])) $el->setDataKeys($params["datakeys"]);
break;
if (isset($params["datakeys"])) $el->setDataKeys($params["datakeys"]);
break;