MINOR Allowing usage of FormField->Type() on base implementation

This commit is contained in:
Ingo Schommer 2011-12-22 12:40:47 +01:00
parent 639caea949
commit c77f4e8421
1 changed files with 5 additions and 1 deletions

View File

@ -559,7 +559,11 @@ class FormField extends RequestHandler {
* @return string
*/
function Type() {
return strtolower(ereg_replace('Field$', '', $this->class));
if(get_class($this) == 'FormField') {
return 'hidden';
} else {
return strtolower(ereg_replace('Field$', '', $this->class));
}
}
/**