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 |
Jump to:
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
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
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
query_handler no longer exists in CVS.
value-type is all correct.
#4
Automatically closed -- issue fixed for two weeks with no activity.