Hi,

It would be easier to explain the problem by describing what I have done:

- I have three related to each other content types: Site, Task and Expense - a Site links to many Tasks and each Task links to many Expenses. The Task content type has a field 'Site' to specify to which Site is the Task related, and the Expense content type has a field Task to specify which Task incurred the Expense.

- I have created a view 'Expenses', which lists all expenses for the respective Tasks and Sites which has an exposed filter by Site and Task. All works fine:
Working (before adding view with references) exposed filter

- Then in order to distinguish the Tasks (if they happen to have duplicate name for different Sites) when adding new Expense, I've created another view - without a page but with reference (following this screencast: http://vimeo.com/27726850). This works perfectly well when creating new Expense:
Combination of the fields with restriction by 'Active' works perfectly well.

- However when I open the 'Expenses' view I see that the Task's exposed filter it totally messed up:
Broken exposed filter.

Does anybody knows how can I fix the broken exposed filter?

Thanks in advance,

Pimmy

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Pimmy’s picture

I have played quite a lot and I believe the problem is general and not specific to the particular use case. The root cause is the fact that whenever a View based on References is created based on a field, the exposed filters of other views for the same field take the generated value of the 'References View' instead of directly from the content filed. Therefore in the drop-down of the exposed filter you get values like this:
<a href="/?q=node/45">The Mall</a> -&amp;gt; <a href="/?q=node/47">Partitioning</a>
instead of just
Partitioning

So far I could not find a way to workaround this problem. Please help.