The check to see if a fivestar widget should be added to a node view only passes if the "vote" tag is enabled for that node type. To fix this bug, I made a function that checks if any tag has been enabled for that content type, if the vote tag hasn't been enabled for that content type. I decided not to deserialize the data and check the actual value, since values are deleted/not created if voting tags aren't enabled for the node type.
~Jakob
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | fivestar-494150-tag.patch | 1.9 KB | ezra-g |
| #4 | multi_axis_node_show_3.patch | 2.02 KB | googletorp |
| #2 | multi_axis_node_show_2.patch | 2.05 KB | googletorp |
| multi_axis_node_show.patch | 2.13 KB | googletorp |
Comments
Comment #1
quicksketchSeems like a more efficient approach would be to look at the list of tags specified at admin/settings/fivestar, then do a variable_get() on all the possible tags. All variables are already loaded into memory, so it would prevent a database call. Also make sure you format your comments correctly with a Capital letter and ending with a period.
Comment #2
googletorp commentedSo I gave another stab at it and tried to clean up my comments as well. Let me know what you think.
~Jakob
Comment #3
ctrnz commentedIn realy do not like this line in the patch
Comment #4
googletorp commentedRemoved the debugging code.
Comment #5
skolesnyk commentedIs it included in the .dev?
Comment #6
ctrnz commentedNo it is not.
And path is only for this release http://drupal.org/node/459660
It will not work for 1.x
Comment #7
ezra-g commentedThis patch no longer applied. I re-rolled and changed the function name to fivestar_widget_enabled() to be somewhat more descriptive.
Comment #8
ezra-g commentedThis is part of the same symptom "widget ignoring settings" as #786224: Widget ignores settings.