mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
b9a296774b
commit
87772a9713
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user