mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: remove serverside Validator::get_javascript_validator_handler() checking when trying to valid the field in serverside.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@97833 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
17a5887a80
commit
d0343cdda6
@ -135,9 +135,6 @@ JS;
|
||||
}
|
||||
|
||||
function validate($validator) {
|
||||
if(Validator::get_javascript_validator_handler() == 'none') {
|
||||
return true;
|
||||
}
|
||||
// TODO Implement server-side validation
|
||||
if($this->value == null) {
|
||||
$validator->validationError($this->name,_t('Form.VALIDATIONALLDATEVALUES',"Please ensure you have set all date values"),"validation");
|
||||
|
@ -56,9 +56,6 @@ HTML;
|
||||
|
||||
function validate($validator)
|
||||
{
|
||||
if(Validator::get_javascript_validator_handler() == 'none') {
|
||||
return true;
|
||||
}
|
||||
if(!empty ($this->value) && !preg_match('/^([0-9][0-9]){1,2}\-[0-9]{1,2}\-[0-9]{1,2}$/', $this->value))
|
||||
{
|
||||
$validator->validationError(
|
||||
|
Loading…
x
Reference in New Issue
Block a user