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:
Normann Lou 2010-01-31 21:58:23 +00:00 committed by Sam Minnee
parent 17a5887a80
commit d0343cdda6
2 changed files with 0 additions and 6 deletions

View File

@ -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");

View File

@ -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(