Closed (duplicate)
Project:
Rate
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Mar 2013 at 00:55 UTC
Updated:
26 May 2014 at 10:38 UTC
Jump to comment: Most recent
On the content page the vote button shows always 0 vote if I reload the page after voted but in the Voting results tab shows an accurate vote.
The strangeness is if I show the node in a view works correctly.
Comments
Comment #1
Heihachi88 commentedSame here, Drupal 7.22 and Rate 7.x-2.x dev, through views it showing up correctly, but not inside a node.
Comment #2
giupenni commentedSame problem
Comment #3
merdekiti commentedSame here
Comment #4
merdekiti commentedThe problem here
478 line of rate.module
When you use "Use source translation" option for a widget it will show you 0 votes after page reload. Don't know why.
Comment #5
merdekiti commentedHave found the problem
I'm using latest dev version.
I have added a few more lines in rate.module file
Here is my change:
Old code:
This return null if a node not translated
$entity_id = node_load($entity_id)->tnid;Comment #6
nikita petrov commentedit's works for me, thanks, merdekiti!
Comment #7
organicwire commentedI think this is the same issue as #1931868: source translation option on untranslated nodes causes 0 votes display. There's a patch for the problem.