AJAX voting using alternative widget returns incorrect result

mikeker - November 14, 2009 - 06:06
Project:Vote Up/Down
Version:6.x-1.0-beta6
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

When using the Alternative voting widget (in admin/settings/voteupdown/general), the AJAX results returned after voting are styled using vote_up_down_points.tpl.php instead of vote_up_down_points_alt.tpl.php

To fix, change vote_up_down.module @ 692 from:

    $variables['title'] = url("vote_up_down/$type/$cid/1/$tag/1", array('query' => 'token='. $token));

to

    $variables['title'] = url("vote_up_down/$type/$cid/1/$tag/1/1", array('query' => 'token='. $token));

(Note the extra "/1" at the end of the url).

I'll see if I have time to roll a proper patch this weekend -- I just reinstalled a bunch of stuff and all my usual tools are broken...

#1

mikeker - November 14, 2009 - 06:44

Looks like I had free time earlier than I thought...

AttachmentSize
alt.patch 702 bytes

#2

mikeker - November 18, 2009 - 22:01
Status:active» needs review

Forgot to set the status to CNR.

 
 

Drupal is a registered trademark of Dries Buytaert.