BUGFIX Hidden field needs to exist for DateField_Disabled in order for validation to pass correctly

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@70545 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-01-21 04:47:08 +00:00 committed by Sam Minnee
parent b9a296774b
commit 87772a9713

View File

@ -120,7 +120,8 @@ class DateField_Disabled extends DateField {
$val = '<i>('._t('DateField.NOTSET', 'not set').')</i>';
}
return "<span class=\"readonly\" id=\"" . $this->id() . "\">$val</span>";
return "<span class=\"readonly\" id=\"" . $this->id() . "\">$val</span>
<input type=\"hidden\" value=\"{$this->value}\" name=\"$this->name\" />";
}
function Type() {