Bug #81
get_random_tag_photo() does not take care of show_tags
| Status: | Closed | Start: | 10/04/2008 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | Andreas Unterkircher | % Done: | 100% |
|
| Category: | internals | Spent time: | 0.50 hours | |
| Target version: | 1.7 | |||
Description
Bug report by William Juul
The rest fixes get_random_tag_photo()
This function had commented out a part which tried to make sure that only cfg->show_tags was included. I tried to uncomment this, but it did not work. Since inner joins still is above my comprehension, I fixed this by copying from somewhere else in the file (only show_tags are included in the photo-index of a tag)
You are right, something is wrong within get_random_tag_photo().
If show_tags is set, it should only return photos associated with the requested tag and those tag which is set in show_tags.
Associated revisions
Revision ad8f72f790097776757dfcd3eda84272fb17d142
make get_random_tag_photo() behave correct when show_tags is set, fixes #81
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
History
Updated by Andreas Unterkircher 1218 days ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
Applied in changeset ad8f72f790097776757dfcd3eda84272fb17d142.
Updated by Andreas Unterkircher 1218 days ago
- Status changed from Resolved to Closed