From cd59a9b1d78d1bd7ed6fd1b628acee4fc46e72d1 Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Fri, 19 Jun 2009 01:36:09 +0000 Subject: [PATCH] MINOR: added $extraClass of a hidden field to its rendered html git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@79603 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/HiddenField.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/forms/HiddenField.php b/forms/HiddenField.php index b0067bd55..bda45605a 100755 --- a/forms/HiddenField.php +++ b/forms/HiddenField.php @@ -9,8 +9,9 @@ class HiddenField extends FormField { * Returns an hidden input field, class="hidden" and type="hidden" */ function Field() { + $extraClass = $this->extraClass(); //if($this->name=="ShowChooseOwn")Debug::show($this->value); - return "id() . "\" name=\"{$this->name}\" value=\"" . $this->attrValue() . "\" />"; + return "id() . "\" name=\"{$this->name}\" value=\"" . $this->attrValue() . "\" />"; } function FieldHolder() { return $this->Field();