Closed (fixed)
Project:
Rate
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Oct 2011 at 18:05 UTC
Updated:
15 Sep 2012 at 17:11 UTC
Jump to comment: Most recent file
I'm using a custom widget on full nodes. I'm printing the widget in my node--content-type.tpl.php file. Like this:
<?php print rate_embed($node, 'widget_name', RATE_FULL); ?>
Whenever I click on the Voting Results Tab for a node, the 'Vote Count:" is always 0 regardless of how many votes that node has. I searched and found this issue previously but it involved using views. What's going on here?
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | voting_results_zero_1301668_5.patch | 1.1 KB | thetoast |
| #3 | rate-js-call-url-1301668-3.patch | 3.58 KB | cyberwolf |
Comments
Comment #1
cyberwolf commentedI had the same problem and I was able to fix it by modifying the path used for the js callback in rate.js:
Comment #2
felix.schollmeier commentedCyberwolf, where exactly is this code? I found the rate.js, but cannot find the line
Comment #3
cyberwolf commentedAttaching a patch for the 7.x-1.x branch which solves the issue here. In addtion there is some cleanup of trailing whitespace in it, and the GET parameter encoding is now handled by jquery's get() as well.
Comment #4
cyberwolf commentedComment #5
thetoast commentedI could be wrong but I don't think this addresses the original problem emergencyofstate is referring to ....... "Whenever I click on the Voting Results Tab for a node, the 'Vote Count:" is always 0", which is what I'm also seeing when using a value type that uses "Options", the other value types seem to be fine. So anyway, after doing a bit of debugging I've came up with this patch. It should be ok to apply it to 7.x-1.3 and 7.x-1.x-dev . Also, I think this is the same bug as reported here http://drupal.org/node/1140280
Comment #6
westie commentedthetoast - patch works as expected for me, thank you
Comment #7
mauritsl commentedCommitted to GIT. Thanks!
Comment #8.0
(not verified) commentedSpelling corrections.