not all taxonomy terms showing up in
lukathonic - May 8, 2007 - 17:34
| Project: | Views |
| Version: | 5.x-1.6 |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | patch (code needs review) |
Description
version 5.1
I'm using the view module / taxonomy to organize site content into a number of categories. When I am editing the view, some of the terms do not show up in the "add fields" drop down menu. (Taxonomy: Terms for FOO)
Right now it lists 8 terms, but there are 13 categories that should be listed. They are all applied to the same content type, but other than that the missing terms are diverse. Some allow freetagging, others don't.
Any idea why this might be?

#1
I am getting the same behaviour. I have two taxonomy term filters, each taxonomy has three terms. But, only two of the terms show up in the lists.
#2
I found out that the first term is deleted if the vocab is not required. The attached patch worked for me.
#3
patch worked for me too. thanks yhager!
#4
#5
The patch failed for me but the bugfix worked, so I've rerolled it.
I'm not 100% sure this is the "right" way to do it, but it seems to work. It also seemed to introduce the side effect that my top term was selected, though that filter wasn't enforced.
#6
greggles: No patch attached.
#7
heh
#8
Here's a revised patch, addressing the issue mentioned on comment #5.
#9
Here's a revised patch, addressing the issue mentioned on comment #5.
#10
Here's a revised patch, addressing the issue mentioned on comment #5.
#11
For patchophobic, a temporary bypass can be to use the "Taxonomy: Term" filter which lists all the terms, in a big long list.
#12
The patch works for me with no visible side effects.
Thanks yhager.
#13
Just a quick question... can anyone tell me why the author deletes the first item in the first place?
#14
@nterbogt : the intent here is to remove the ' option that is present in taxonomy selectors for non-required vocabularies, but is not relevant in the views filters context. Then forgetting to check if the vocab actually is required or not is a typo / negligence, I guess :-)
Let's mark this RTBC
#15
Subscribing.
#16
yched meant to say
<All>option but his < got eaten. =)Yes, this patch is RTBC, I just need to get back around to this. Hopefully soon.
#17
I'm having this problem w/ 5.x-1.6-beta5 too. Should the Version of this issue be changed?
#18
It definitely should. This a 1.6 bug only, AFAIK.
#19
also missed the first taxonomy term in my exposed filters (and in views admin forms). But this patch worked for me, many thx!
#20
Solution worked for me. bang it into CVS.
#21
I've test the patch... the first term is still not visibile.
#22
The latest patch fixed my terms not showing up, Thanks
#23
latest patch worked for me
#24
To those of you who are reporting that this patch is not working, try emptying the cache_views table after applying the patch. That worked for me.
#25
Latest patch also fixes this issue for me.
txcrew
#26
Finally committed to -dev. =)
#27
#28
With 5.4, a fix in taxonomy was applied (http://drupal.org/node/180109). This means the first entry for optional filters does not have to be removed anymore. Attached a patch that establishes the wanted result.
Without this patch, the first taxonomy term doesn't show up, which is most definitely undesired behaviour.
#29
This needs to be fixed so that it doesn't store the entire taxonomy tree in the views cache anyway.
#30
I've used 1.6 and first term still won't show in terms list
#31
I'm using 1.6 and the above patch worked for me without any visual side effects. But like merlinofchaos mentions this may not be the right way to do it anyway.
#32
Lots of duplicates of this so changing status back to patch to make it more visible.
#33
Patch from #28 applies cleanly and solves the issue for me.
#34
patch in comment #28 works fine for me
+1 for this being released
#35
This patch is already committed, there just isn't an official release which includes it yet (because the 1.7 release depends on more than just this patch). I marked this back to a patch status to make it easier to find but that seems to be giving the impression that it needs testing/lobbying to get committed - so back to fixed I guess.
#36
[edit: Ignore - I forgot to clear the views cache]
This isn't working for me, not even the patch in #28
I am using views-1.6 and Drupal 5.7
My Taxonomy Term has a space in it -> "Friends Only", would that be the problem?
Regards,
tim
#37
Automatically closed -- issue fixed for two weeks with no activity.
#38
subscribing
#39
The first term of a vocabulary that's not required still doesn't show up in Views. The committed patch didn't fix the problem.
Issue #180109: Only taxonomy term selected by default when there is only one broke the behavior of Views:
unset($form['#options'][0]);