I think this is a great module, and its the main reason I restarted my project using d5 instead of d6. When I first installed and patched views it all worked smoothly.

Now i can't get rid of the dropbox function in an exposed views filter. I am clicking "Configure Hierarchical Select" in the views configuration / exposed filters, then i tick off the dropbox and save both HS config and views config.

Can anyone help me? Many thanks!

Comments

wim leers’s picture

Assigned: Unassigned » wim leers
Status: Active » Postponed (maintainer needs more info)

It's assumed that if you enable it for the vocabulary, that you then also want to enable it for the exposed filters.

In modules/taxonomy_views.module:

        // Only apply Hierarchical Select if it's enabled for this vocabulary.
        if (variable_get("taxonomy_hierarchical_select_$vid", 0)) {

This is the first time I've seen somebody who didn't like this behavior. You could of course disable it for the vocabulary to get rid of it in the view. But I doubt that's what you want?

jooel’s picture

Thanks for helping!

It's a bit strange. I have disabled dropbox everywhere i can find it, but it still appears in exposed view.

For some reason i get this error msg sometimes (in views and HS config):

warning: preg_match() expects parameter 2 to be string, array given in C:\Program\wamp\www\bf\includes\bootstrap.inc on line 684.

Maybe this could be what's ruining it? Could i try someway to reinstall HS (and maybe views) completely clean, without anything lying around in the database?

I am commenting row 81 to get the result i want:

// $form["filter$id"]['#config']['dropbox']['status'] = !((bool) $view->exposed_filter[$id]['single']);

wim leers’s picture

You can find all your HS configs at admin/settings/hierarchical_select/configs. That might help. You must be overlooking *something*.

That error message is not very relevant since I don't know what Drupal version you're using … :)

Reinstalling HS/Views shouldn't make a difference.

jooel’s picture

I am using the latest drupal 5.12.

Dropbox is disabled in all configs (node form and views exposed filters, in my case), but still showing up in views exposed filters.

I got the dirty trick working so this probably won't bother me anymore, but if you need me to help troubleshooting I'd be glad to.

wim leers’s picture

Title: Exposed view dropbox - Can't get rid of » A view's Force Single setting controls the dropbox setting
Component: Code - Taxonomy Views » Documentation
Category: support » task

Ah, hah, right! That line you commented has the solution :)

You must set the "Force Single" setting if you don't want to use the dropbox. It's obvious to most people, but I guess that needs to be documented more clearly.

wim leers’s picture

Status: Postponed (maintainer needs more info) » Active
jooel’s picture

Force single in views config? That option says "This setting is now managed by the Hierarchical Select widget configuration!" and if i tick it that change isn't saved when saving the view. I can't find a "force single" option anywhere else. Hmm..

associate’s picture

Just to add I'm having the same issue.

DiversiCon’s picture

Same issue, dropbox shows in view exposed filter regardless of settings and I cannot change the "Force Single" setting in the view exposed filter configuration. Fantastic solution to a difficult problem, keep up the good work.

wim leers’s picture

Title: A view's Force Single setting controls the dropbox setting » Views integration is too confusing
Component: Documentation » Code - Taxonomy Views
Priority: Normal » Critical

Force single in views config? That option says "This setting is now managed by the Hierarchical Select widget configuration!" and if i tick it that change isn't saved when saving the view. I can't find a "force single" option anywhere else. Hmm..

Right, my bad, I looked at a view that wasn't managed by HS… Sorry. Yes, this works crappily and yes it's super confusing, but no, there is no other way. :(

However, I will change how it works, because now it's just WAY too confusing/error prone. Changing the HS config will automatically update the View in the database. Stay tuned :)

wim leers’s picture

Status: Active » Fixed

Ready! Please get the latest tarball and report bugs if there are any!

Status: Fixed » Closed (fixed)

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