mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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
|
* @return string
|
||||||
*/
|
*/
|
||||||
function Type() {
|
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
Block a user