Bug in votingapi_views.inc (currentuservalue)

jacr - October 8, 2007 - 00:51
Project:Voting API
Version:5.x-1.5
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

#1

westbywest - October 17, 2007 - 01:28

I 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.

#2

sdsheridan - November 8, 2007 - 18:45

Found 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.

#3

sun - July 1, 2008 - 17:39
Status:active» fixed

query_handler no longer exists in CVS.
value-type is all correct.

#4

Anonymous (not verified) - July 15, 2008 - 17:42
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.