When using fivestar + views there is a small bug in fivestar_views_widget_handler function , on the generated view there are always 5 stars and there is no way to set this up.
As i noticed you can set up amount of stars displayed for each content type on /admin/content/types but this variable is not properly received in fivestar_views_widget_handler :
$node_type = isset($columns->node_type) ? $query->node_type : db_result(db_query("SELECT type FROM {node} WHERE nid = %d", $columns->nid));
$node_type is empty because $columns->node_type isset but $query->node_type not.
I'm attaching patch to this post.
Greetings everyone.
Mac
Meant4.pl Web Studio
http://www.meant4.pl
maciej.perlinski@meant4.com
| Comment | File | Size | Author |
|---|---|---|---|
| fivestar.patch | 656 bytes | mac_perlinski |
Comments
Comment #1
mac_perlinski commentedComment #2
mac_perlinski commentedComment #3
mac_perlinski commentedComment #4
quicksketchHeh, some kind of status funkiness going on here. Thanks for the patch, I'll take a look at it.
Comment #5
mac_perlinski commentedLol, my fault but anyway i m pretty sure it will solve at least this small problem, if you need more detailed description of the situation when it exists please write back.
Mac
Comment #6
quicksketchThis has already been fixed in CVS. #252914: Check "rate content" permission in views