X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FCombobox.class.php;fp=WEB-INF%2Flib%2Fform%2FCombobox.class.php;h=0e8ec06c780b039731f862ce830615c99e829447;hb=6e59f47d1baf9e3d420b4a368dcc005d54b6e599;hp=dcb84a24c1607c7808f1fe04e4ba7b5bdfc1a937;hpb=06ec4ba10585fef2bc42a70a099e6c619ae41f87;p=timetracker.git diff --git a/WEB-INF/lib/form/Combobox.class.php b/WEB-INF/lib/form/Combobox.class.php index dcb84a24..0e8ec06c 100644 --- a/WEB-INF/lib/form/Combobox.class.php +++ b/WEB-INF/lib/form/Combobox.class.php @@ -48,7 +48,7 @@ class Combobox extends FormElement { function __construct($name,$value="") { - $this->mName = $name; + $this->name = $name; $this->mValue = $value; } @@ -68,10 +68,10 @@ class Combobox extends FormElement { function toStringControl() { if (!$this->isRenderable()) return ""; - if ($this->mId=="") $this->mId = $this->mName; + if ($this->id=="") $this->id = $this->name; $html = "\n\tmName\" id=\"$this->mId\""; + $html .= " name=\"$this->name\" id=\"$this->id\""; if ($this->mSize!="") $html .= " size=\"$this->mSize\"";