- Created Test Taxonomy assigned to node type Story, Created few Story nodes.
- Created simple node view: Defaults only, no displays, table style, filtering on Story
- added fields Node:Title and Taxonomy:All terms (Limit terms by vocabulary Test Taxonomy)
- Created Finder: element Select List, find by field Taxonomy: Terms for Test Taxonomy
- Select list in finder block correctly shows the assigned Test Taxonomy terms
- modify view adding field User:Name
- reload finder block page: now the Select List shows User Names instead of Test Taxonomy terms
- removing the User:Name field from view restores the correct values in Finder select list

Comments

danielb’s picture

thanks for taking the time to write this up

unfortunately:
- I followed your instructions and I don't get such a problem.
- Theoretically adding/removing a fields item to the view should NOT affect the options in finder. Views Finder will work even if using 'node' row style.

It is possible there is a problem with the finder views theme function http://braksator.com/api/function/theme_finder_views_results/6--1
It was recently changed to provide all the results data that views knows - it's possible the wrong piece of data is being output by this function.
If you can debug the value of the incoming $results that may give you a big clue what is wrong.

Have you done any theming on other finders that might affect this finder?

skizzo’s picture

That's weird... No, I have not done any theming, and not being into software development I can't debug it either. I am running both domain and domain_taxonomy which provide node access (and term access) control based on FQDN, but I guess that shouldn't matter... I can't disable those modules (and they also require quite a complex setup). Anyway, even without term selection, a text element will be great for me. Let's wait and see if someone else steps into this problem. Thank you!

danielb’s picture

The only thing I can think of is that the field in the user table for usernames is called 'name' and the field for taxonomy terms in the terms table is also 'name'. But views uses an alias system to avoid clashes - so I don't think this should be a problem. There are some situations where the alias' sorta might mess up though, for example views that were not constructed by hand in the GUI.

danielb’s picture

Status: Active » Postponed (maintainer needs more info)

I don't know how to fix this, and I can't replicate the problem, so I might need more info if anybody else has this issue. I can suggest a possible workaround; use multiple views displays, one that shows the extra field (that isn't used in the finder element) for your own purposes on your website, and another views display that doesn't show the extra field - it is just specific to the finder element.

golfwolf’s picture

I have the same problem:

Setup:
Finder with elements for user:name (autocomplete) and taxonomy (2 select-boxes).
Fiender-type is set to view
When I change the view and add the field user:name to the fields the Select-Box Element-Values in the Foinder Form change to user:name. When I remove the user name the select boxes show the taxonomy again.
I will workaround with copying the user:name to a newly created cck-field author.

danielb’s picture

Yup OK that did it for me - I think it's a clash in aliases, and probably has something to do with how finder determines the aliases that views is using to add stuff in. But I don't know what the proper way to do this is.

danielb’s picture

I think I'm onto something

danielb’s picture

I've commited a fix I think might do the trick, it should appear in the dev release in a few hours.

danielb’s picture

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

Status: Active » Fixed

The alias handling in the dev release should ensure the values come from the correct field.

Status: Fixed » Closed (fixed)

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