Skip to content
Browse files

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

  • Loading branch information...
1 parent 639caea commit c77f4e8421014081da3f7373a5f83445b8700b56 @chillu chillu committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 forms/FormField.php
View
6 forms/FormField.php
@@ -559,7 +559,11 @@ function hasClass($class){
* @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));
+ }
}
/**

0 comments on commit c77f4e8

Please sign in to comment.
Something went wrong with that request. Please try again.