first gallery (category term) in each group not useable
| Project: | OG Galleries |
| Version: | 5.x-1.7 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | neurojavi |
| Status: | reviewed & tested by the community |
Hi,
I'm using Drupal 5.5 now by upgrading Drupal 5.3. Before the upgrade, everything worked fine with og_galleries and so on, but now, after upgrading, there seems to be a problem:
It's clear that each group owns some galleries which can be created by using "node/*groupid*/galleries". There, I can see a complete list of all terms. Nethertheless, if I want to add an image to one of the galleries, I remembered that the first term in the list of available galleries ("node/add/image") was always missing compared to the list on "node/*groupid*/galleries".
This bug can be found in every group.
Workaround:
To bypass this bug, it is necessary to add a fake term with a weight of -10 . Then, if you want to create a new image node, all possible galleries (apart from the fake term) are shown and can be selected.
Since there were some problems with taxonomy in Drupal 5.4, I think that this could be a bug of "og_galleries" if Drupal 5.5 is running. Is there anybody out there having a similar problem?

#1
Hi:
I have the same issue but I think I've solved it.
There was an error in hte form_alter hook. There structure of the taxonomy form field array not is not the one assumed in the code and it has an if statement that I don't know what is supposed to do.
I've attached a patch that solves the issue for me.
Tell me if this works for you, please.
#2
Thanks neurojavi, your patch is working well and now on, every term is shown in the list if you want to upload an image.
I think, it's really an error in "og_galleries.module" which appears since the release of Drupal 5.5. Perhaps, it's necessary that some people take a look at the patch, but I think, it's ok and the developer should port this patch =)