Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit c77f4e8421014081da3f7373a5f83445b8700b56 1 parent 639caea
@chillu chillu authored
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));
+ }
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.