Further refactoring of the FormElement class to simplify things.
[timetracker.git] / WEB-INF / lib / form / Form.class.php
index 2c16f25..ceaed43 100644 (file)
@@ -162,7 +162,7 @@ class Form {
                        if (isset($GLOBALS["I18N"])) $el->setLocalization($GLOBALS["I18N"]);
                
                        $el->setFormName($this->name);
-                       $this->elements[$el->getName()] = &$el;
+                       $this->elements[$el->name] = &$el;
                }
        }