Changeset 11003
- Timestamp:
- 08/20/08 18:39:20 (11 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/validator/sfValidatorSchemaFilter.class.php
r9048 r11003 54 54 $value = isset($values[$this->getOption('field')]) ? $values[$this->getOption('field')] : null; 55 55 56 $values[$this->getOption('field')] = $this->getOption('validator')->clean($value); 56 try 57 { 58 $values[$this->getOption('field')] = $this->getOption('validator')->clean($value); 59 } 60 catch (sfValidatorError $error) 61 { 62 throw new sfValidatorErrorSchema($this, array($this->getOption('field') => $error)); 63 } 57 64 58 65 return $values; branches/1.2/lib/validator/sfValidatorSchemaFilter.class.php
r9048 r11003 54 54 $value = isset($values[$this->getOption('field')]) ? $values[$this->getOption('field')] : null; 55 55 56 $values[$this->getOption('field')] = $this->getOption('validator')->clean($value); 56 try 57 { 58 $values[$this->getOption('field')] = $this->getOption('validator')->clean($value); 59 } 60 catch (sfValidatorError $error) 61 { 62 throw new sfValidatorErrorSchema($this, array($this->getOption('field') => $error)); 63 } 57 64 58 65 return $values;

