summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaren Stevenson2012-01-08 15:25:11 (GMT)
committer Karen Stevenson2012-01-08 15:25:11 (GMT)
commitf5e85bb6d6ee1d70896484482f237f54cef65077 (patch)
tree4fdbaa2d414d369c21fd01bf784500735262cb9b
parent0222f42d1d1ae48335189eb9d99b7428f502930c (diff)
Issue #1397822, Fix 'Undefined index: field' error on line 207 of date_views_filter_handler_simple.inc.
-rw-r--r--CHANGELOG.txt1
-rw-r--r--date_views/includes/date_views_filter_handler_simple.inc2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 8296cc9..aac7bdd 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -5,6 +5,7 @@ Date Module 7.x
Version 7.x-2.x-dev
===================
+- Issue #1397822, Fix 'Undefined index: field' error on line 207 of date_views_filter_handler_simple.inc.
- Issue #1396536, Repeating fields weren't getting created with Devel Generate because of the change in widgets. Add new hooks so Date Repeat Field can add the repeats.
- Issue #1397126 follow-up by arlinsandbulte, Fix broken tests.
- Issue #1397158, The default value for the end date was using the wrong timezone setting.
diff --git a/date_views/includes/date_views_filter_handler_simple.inc b/date_views/includes/date_views_filter_handler_simple.inc
index 02de725..82e681c 100644
--- a/date_views/includes/date_views_filter_handler_simple.inc
+++ b/date_views/includes/date_views_filter_handler_simple.inc
@@ -204,7 +204,7 @@ class date_views_filter_handler_simple extends views_handler_filter_date {
'#options' => array('' => t('No'), 'yes' => t('Yes')),
'#description' => t('Add an identifier to the view to show which multiple value date fields meet the filter criteria. Note: This option may introduce duplicate values into the view. Required when using multiple value fields in a Calendar or any time you want the node view of multiple value dates to display only the values that match the view filters.'),
// Only let mere mortals tweak this setting for multi-value fields
- '#access' => $field['cardinality'] != 1,
+ '#access' => !empty($field) ? $field['cardinality'] != 1 : 1,
);
}