Closed (fixed)
Project:
NodeReview
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Aug 2008 at 02:36 UTC
Updated:
29 Mar 2011 at 00:21 UTC
Line 452 $axes[$node_type][$record->aid] = $record->tag;
should read
$axes[$node_type][$record->aid] = $record->aid;
$axes[$node_type][$record->tag] = $record->tag;
Comments
Comment #1
twohills commentedsorry: and...
line 118 of nodereview_node_nodereview.inc, function _nodereview_form_review
'#default_value' => $votes[$axis->tag] ? $votes[$axis->tag] : 50,should read
'#default_value' => $votes[$axis->aid] ? $votes[$axis->aid] : 50,line 174 of nodereview_node_nodereview.inc, function nodereview_load
$record->score = $votes[$record->tag]->value;should read
$record->score = $votes[$record->aid]->value;The confusion arises because voting uses "tag" to refer to the unique identifier of the thing being voted on.
The unique identifier of the axis is the aid not the tag.
In most cases it probably isn't an issue but i am "bending" nodereview and it may be for me (and others).
Comment #2
danielhonrade commented