We are getting this error since upgrading to 7.x-3.23:

Notice: Undefined index: value in views_handler_filter->accept_exposed_input() (line 1390 of .../views/handlers/views_handler_filter.inc).

It is caused by commit 50fe583 from #477984: CCK field is empty/not empty filter doesn't work when exposed.

This is the line causing the problem:

$value = is_array($value) ? $value['value'] : $value;

We are getting this error on admin/people. The value of $value is array('all' => 'all'). So, it counts as an array, but $value['value'] doesn't exist. This may be due to some customization on our end.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Liam Morland created an issue. See original summary.

Liam Morland’s picture

Status: Active » Needs review
FileSize
808 bytes

Fix.

DamienMcKenna’s picture

DamienMcKenna’s picture

Status: Needs review » Needs work

I think it'd be more readable if it was changed to an if() statement.

Liam Morland’s picture

Status: Needs work » Needs review
FileSize
828 bytes

Fix as an if statement.

tomdearden’s picture

I'm seeing this issue, too- with grouped filters set up using Views UI on v7.x-3.23. Both the patches (#3 and #5) above work..

DamienMcKenna’s picture

Status: Needs review » Fixed

Committed. Thank you.

Status: Fixed » Closed (fixed)

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

jenlampton’s picture

I'm seeing this same notice for numeric handler:

Undefined index: value in views_handler_filter_numeric->accept_exposed_input() (line 399 of www/sites/all/modules/contrib/views/handlers/views_handler_filter_numeric.inc).
Liam Morland’s picture

That looks like something that should have a new issue.