Skip to content

Commit

Permalink
MINOR Allowing usage of FormField->Type() on base implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Jan 2, 2012
1 parent 639caea commit c77f4e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion forms/FormField.php
Expand Up @@ -559,7 +559,11 @@ function hasClass($class){
* @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));
}
} }


/** /**
Expand Down

0 comments on commit c77f4e8

Please sign in to comment.