Hello!
I have a notice:
Notice: Undefined index: #id in template_preprocess_views_exposed_form()
I couldn't find anything similar, so I created this ticket

it caused by date_filter, because it doesn't have #id in form
and I think because date_filter is just a container for date select elements and date_filter as an element of form doesn't have #type

foreach ($form['#info'] as $id => $info) {
but in preprocess it contained in #info array so id for widget collected from this element and notice appeared

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dellintosh’s picture

Status: Active » Needs review
FileSize
766 bytes

Attaching patch to test. I'd like to hear some input from the maintainers if this is a good solution to this error.

Thanks,
-dellintosh

dellintosh’s picture

try this one instead.

dawehner’s picture

Status: Needs review » Fixed

Thanks committed this patch to 6.x-3.x and 7.x-3.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

bcmiller0’s picture

adding a patch file to allow use via drush make for our build process, against views-6.x-3.0

rooby’s picture

Version: 6.x-2.12 » 6.x-2.18
Issue summary: View changes
Status: Closed (fixed) » Patch (to be ported)

Looks like this is still an issue in 6.x-2.18

intrafusion’s picture

Status: Patch (to be ported) » Needs review
Issue tags: +PHP 5.4
FileSize
554 bytes

Came across this same issue when trying to convert to PHP 5.4

Patch from #5 ported to 6.x-2.x

izmeez’s picture

Patch in comment #7 applies without difficulty to latest views-6.x-2.26

Chris Matthews’s picture

Status: Needs review » Closed (outdated)

The Drupal 6 branch is no longer supported, please check with the D6LTS project if you need further support. For more information as to why this issue was closed, please see issue #3030347: Plan to clean process issue queue