Hello there....

I created a view and left it for some time, then for going live I wanted to change the filter identifiers for my exposed filter to have some more human readable and informative names...
When I do that the dependent exposed filter doesnt work anymore, it keeps using the default filter identifier that was set in the first place...

tried deleting the filter, save the view, clear all cache and recreate the filter again. But still it just use the defaut filter identifier..

Comments

joachim’s picture

Status: Active » Postponed (maintainer needs more info)

Can you debug the form items in options_form()? Are they showing the correct machine names for your filters?

acoustika’s picture

hmmm, not sure How to do that.... is it something in devel or how and where should I add that code to debug that....
But I dont think it does.....

These errors and warnings I get when I change the identifier for a field

Notice: Undefined index: field_artist_type_tid i views_dependent_filters_handler_filter_dependent->exposed_form() (linje 252 af D:\Apache2.2\htdocs\booking_dev\sites\all\modules\views_dependent_filters\views_dependent_filters_handler_filter_dependent.inc).
Warning: array_intersect() [function.array-intersect]: Argument #1 is not an array i views_dependent_filters_handler_filter_dependent->exposed_form() (linje 257 af D:\Apache2.2\htdocs\booking_dev\sites\all\modules\views_dependent_filters\views_dependent_filters_handler_filter_dependent.inc).
Notice: Undefined index: <strong>field_artist_type_tid</strong> i views_dependent_filters_handler_filter_dependent->exposed_form() (linje 252 af D:\Apache2.2\htdocs\booking_dev\sites\all\modules\views_dependent_filters\views_dependent_filters_handler_filter_dependent.inc).
Warning: array_intersect() [function.array-intersect]: Argument #1 is not an array i views_dependent_filters_handler_filter_dependent->exposed_form() (linje 257 af D:\Apache2.2\htdocs\booking_dev\sites\all\modules\views_dependent_filters\views_dependent_filters_handler_filter_dependent.inc).
Notice: Undefined index: field_artist_type_tid i views_dependent_filters_handler_filter_dependent->exposed_form() (linje 252 af D:\Apache2.2\htdocs\booking_dev\sites\all\modules\views_dependent_filters\views_dependent_filters_handler_filter_dependent.inc).
Warning: array_intersect() [function.array-intersect]: Argument #1 is not an array i views_dependent_filters_handler_filter_dependent->exposed_form() (linje 257 af D:\Apache2.2\htdocs\booking_dev\sites\all\modules\views_dependent_filters\views_dependent_filters_handler_filter_dependent.inc).

Where field_artist_type_tid is the default/original indetifier and in this example I changed it to artisttype and it will still look/use field_artist_type_tid even if I delete them and create the filters from start with other names

joachim’s picture

Have you been back to the dependent filter settings to refresh them? Those are obviously based on the handler machine names, so if those change, its settings are broken.

acoustika’s picture

hmmm, what do you mean by refresh them?

If i Delete both the dependent AND the dependee filter and the global:dependent filter and start over creating them in my view and on creation make a custom filter identifier it still cant figure it out

Btw I also have better exposed filters module installed and using that if it should have to do with any conflicts in that one

mustanggb’s picture

Category: Bug report » Support request
Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (outdated)