diff options
| author | Tristan Zur <tzur@ccwn.org> | 2012-05-16 18:14:03 +0200 |
|---|---|---|
| committer | Tristan Zur <tzur@ccwn.org> | 2012-05-16 18:14:03 +0200 |
| commit | 48f25c5eadd2a82a365b034a59b3cba4536a1e74 (patch) | |
| tree | 687b9437d4afe02d9595ec38b850cfc04bf10c27 /protected/components/DateRangeValidator.php | |
| parent | 13044f64bf51001ea0c9df5b1f6e7f16b6857151 (diff) | |
Bugfix: Die Datumsvalidierung funktionierte nicht, weil Vergleich auf
der Basis von Strings durchgeführt wurde
Diffstat (limited to 'protected/components/DateRangeValidator.php')
| -rw-r--r-- | protected/components/DateRangeValidator.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protected/components/DateRangeValidator.php b/protected/components/DateRangeValidator.php index 8b963a8..529f185 100644 --- a/protected/components/DateRangeValidator.php +++ b/protected/components/DateRangeValidator.php @@ -10,10 +10,10 @@ class DateRangeValidator extends DateCompareValidator { $object->clearErrors($attribute); } $this->compareValue = $this->minDate; - $this->operator = '>'; + $this->operator = '>='; parent::validateAttribute($object, $attribute); $this->compareValue = $this->maxDate; - $this->operator = '<'; + $this->operator = '<='; parent::validateAttribute($object, $attribute); $addRangeError = false; |
