From c77f4e8421014081da3f7373a5f83445b8700b56 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 22 Dec 2011 12:40:47 +0100 Subject: [PATCH] MINOR Allowing usage of FormField->Type() on base implementation --- forms/FormField.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/forms/FormField.php b/forms/FormField.php index 78999441d..611e51195 100644 --- a/forms/FormField.php +++ b/forms/FormField.php @@ -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)); + } } /**