Closed (fixed)
Project:
Fivestar
Version:
5.x-1.12
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
22 Jul 2008 at 13:44 UTC
Updated:
27 Feb 2021 at 04:44 UTC
Hi. I set up my fivestar to show the active widget above the node. I don't allow anonymous votes. When an anonymous user views the page, the fivestar static widget appears below the node.
The problem is in the nodeapi view function, when it's deciding whether to give it weight -10 or +50. The switch($position) falls through the 'above'/'below' case if the user doesn't have access. Then the 'above_static' case only checks if $position is 'above_static'. This patch changes it so that it checks if $position starts with 'above', to support this fall-through case.
| Comment | File | Size | Author |
|---|---|---|---|
| position.diff | 707 bytes | Anonymous (not verified) |
Comments
Comment #1
quicksketchThanks! I committed to both 5 and 6 branches.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.