Skip to content

Commit 874c8c0

Browse files
committed
HtmlFormDropdown bug fixed
see #4
1 parent 92bd719 commit 874c8c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Ajax/semantic/html/collections/form/HtmlFormDropdown.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class HtmlFormDropdown extends HtmlFormField {
99

10-
public function __construct($identifier,$items=array(), $label=NULL,$value=NULL,$multiple=false,$associative=true) {
10+
public function __construct($identifier,$items=array(), $label=NULL,$value="",$multiple=false,$associative=true) {
1111
parent::__construct("field-".$identifier, (new HtmlDropdown("dropdown-".$identifier,$value,$items,$associative))->asSelect($identifier,$multiple), $label);
1212
$this->_identifier=$identifier;
1313
}
@@ -18,7 +18,7 @@ public function setItems($items){
1818
public function addItem($item,$value=NULL,$image=NULL){
1919
return $this->getField()->addItem($item,$value,$image);
2020
}
21-
public static function multipleDropdown($identifier,$items=array(), $label=NULL,$value=NULL,$associative=true){
21+
public static function multipleDropdown($identifier,$items=array(), $label=NULL,$value="",$associative=true){
2222
return new HtmlFormDropdown($identifier,$items,$label,$value,true,$associative);
2323
}
2424

0 commit comments

Comments
 (0)