MINOR Allowing usage of FormField->Type() on base implementation
This commit is contained in:
parent
639caea949
commit
c77f4e8421
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue