Fivestar comments saving wrong value for the first time
sign - June 21, 2009 - 15:05
| Project: | Fivestar |
| Version: | 6.x-1.15 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
How to replicate this:
Post a comment without any stars
Edit the comment and highlight it with 1 star
Click Save -> presents 5 stars
The problem is on the line 184 in fivestar_comment.module
db_query('INSERT INTO {fivestar_comment} (cid, value) VALUES (%d, %d)', $cid, $vote['user']['vote_id'], $value);
should be:
db_query('INSERT INTO {fivestar_comment} (cid, vote_id, value) VALUES (%d, %d, %d)', $cid, $vote['user']['vote_id'], $value);
patch attached
| Attachment | Size |
|---|---|
| fivestar-comments.patch | 854 bytes |

#1
Committed to both 5 and 6 versions. Thanks!
#2
Automatically closed -- issue fixed for 2 weeks with no activity.