Hello ppl! First of I'd like to thank you for the awesome module.

View's developpers are currently working hard on creating Hybrid exposed filters (and are hopefully about to succeed :D)
This is the issue link (with the correct patch to install) Hybrid Exposed Filters

This new type of exposed filter is used to create complex exposed filter form allowing advanced numbers filtering (between 1 and 100, 101 and more, etc.)

However, this generates an error from Better Exposed Filters:

Notice: Undefined index: filter-field_my_name_value in better_exposed_filters_exposed_form_plugin->exposed_form_alter() (line 467 of sites/all/modules/better_exposed_filters/better_exposed_filters_exposed_form_plugin.inc).

(these are the lines)
466 // Form element is designated by the element ID which is user-configurable
467 $field_id = $form['#info']["filter-$label"]['value'];

So basically for now, I can't create a view using regular exposed filters (with better exposed filter activated to generate the checkboxes) and hybrid exposed filters.

Comments

Marc-Antoine’s picture

Status: Active » Needs review
StatusFileSize
new793 bytes

Here's my modest patch, it prevents better exposed filters from completing it's hook if the current filter is a hybrid exposed filter.

imclean’s picture

StatusFileSize
new868 bytes

Here's a different approach which allows BEF to support hybrid filters. This uses the hybrid filter identifier, if set, instead of the field label.

Latest Hybrid Filters patch: http://drupal.org/node/731662#comment-5583492

imclean’s picture

StatusFileSize
new845 bytes

Removed trailing whitespace.

imclean’s picture

To be honest, I'm not sure how useful the approach in #3 would be. Hybrid filters can already display radio and select elements and unless multiple selects will be possible there's not a lot of point in BEF integration.

KLicheR’s picture

Version: 7.x-3.x-dev » 7.x-3.0-beta1
StatusFileSize
new768 bytes

Patch adapted to the latest stable release.

KLicheR’s picture

Version: 7.x-3.0-beta1 » 7.x-3.0-beta2
StatusFileSize
new768 bytes

Patch adapted to the latest stable release.

Status: Needs review » Needs work

The last submitted patch, bef_hybrid_filters_support-1431810-6.patch, failed testing.

KLicheR’s picture

Version: 7.x-3.0-beta2 » 7.x-3.0-beta3
StatusFileSize
new768 bytes

Patch adapted to the latest stable release.

It seem that this patch is also important: http://drupal.org/node/1512874#comment-6555104

imclean’s picture

Version: 7.x-3.0-beta3 » 7.x-3.x-dev
Status: Needs work » Needs review

Patches should be against the dev version.

Hybrid filters has long since been committed to Views so this patch is essential.

theodorosploumis’s picture

Patch from #8 has not adapted to any latest stable (7.x-3.0-beta3 / 2012-Oct-03) or dev version (7.x-3.0-dev / 2013-Feb-25) and it is needed for views ASAP!

By the way, it works fine with Views grouped exposed filters.

imclean’s picture

StatusFileSize
new778 bytes

Patch against latest git.

kalabro’s picture

Status: Needs review » Active
kalabro’s picture

Status: Active » Needs review

Re-roll latest patch

mikeker’s picture

Status: Needs review » Closed (works as designed)

I appreciate your work on this issue, but BEF already supports Grouped (or Hybrid) filters. As long as the display element is set to "select" instead of "radio".

Exploratus’s picture

Status: Closed (works as designed) » Active

This patch helped me when using grouped filters in a view. I was getting lots of errors on grouped filters, and this made the errors go away.

mikeker’s picture

Status: Active » Closed (works as designed)

@Exploratus, please don't reactive issues unless you have specific information to add. What errors were you getting? What is your view configuration (copy/paste an export of the view in question).

Thanks.

mikeker’s picture

Issue summary: View changes

My link was invisible

amaisano’s picture

Issue summary: View changes

#14 resolved the PHP errors I was getting. Very small but critical detail:

BEF already supports Grouped (or Hybrid) filters. As long as the display element is set to "select" instead of "radio".

Thanks.

However, when I set BEF for that filter to be "Checkboxes/Radio" it refuses to use checkboxes. Even though the filter is set for "Allow Multiple," BEF is rendering Radio Buttons.