Closed (fixed)
Project:
Voting API
Version:
5.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2007 at 00:51 UTC
Updated:
15 Jul 2008 at 17:42 UTC
In votingapi_views.inc is a Bug.
Current:
"currentuservalue" => array(
'name' => t("VotingAPI !type !tag value (current user only)", array('!tag' => $vote_tag, '!type' => $vote_type)),
'field' => 'value',
'handler' => votingapi_get_formatters(array('value_type' => $vote_type, 'tag' => $vote_tag)),
'value_type' => $vote_type,
'tag' => $tag,
'query handler' => 'votingapi_views_qhandler_currentuser_vote',
'sortable' => TRUE,
),
This is the Bug:
'query handler' => 'votingapi_views_qhandler_currentuser_vote',
Must be:
'query_handler' => 'votingapi_views_qhandler_currentuser_vote',
Jens
Comments
Comment #1
westbywest commentedI think this is related to another bug with Voting API and views:
http://drupal.org/node/168282
I applied the patch suggested above and the DB errors went away (so far). I haven't yet checked whether this clears the "save and edit" work-around suggested in the other bug report.
Comment #2
sdsheridanFound another one of these: a "value-type" which should have been (I'm assuming, and so changed it) "value_type". Probably want to have a scan through the code for these types of defects.
Comment #3
sunquery_handler no longer exists in CVS.
value-type is all correct.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.