summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt1
-rw-r--r--handlers/views_handler_filter_date.inc2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 26521bc..7502212 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -90,6 +90,7 @@ Views 2.x-dev
o #909886: -Any- option shows up on boolean exposed filters even when not optional.
o #751308 by dereine: Provide an administrator warning when option_definition() data is incorrect.
o #817360 by John Morahan: Have Analyze button warn if view has no access control.
+ o #833220 by dereine: Properly validate value on date filter.
New features
o #841260: Introduce a field to evaluate math expressions. Relies on CTools 1.7 (not yet released).
diff --git a/handlers/views_handler_filter_date.inc b/handlers/views_handler_filter_date.inc
index ae78359..4758e40 100644
--- a/handlers/views_handler_filter_date.inc
+++ b/handlers/views_handler_filter_date.inc
@@ -73,7 +73,7 @@ class views_handler_filter_date extends views_handler_filter_numeric {
if ($operators[$operator]['values'] == 1) {
$convert = strtotime($value['value']);
- if ($convert == -1 || $convert === FALSE) {
+ if (!empty($form['value']) && ($convert == -1 || $convert === FALSE)) {
form_error($form['value'], t('Invalid date format.'));
}
}