Download & Extend

AJAX voting using alternative widget returns incorrect result

Project:Vote Up/Down
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

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

Comments

#1

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

AttachmentSizeStatusTest resultOperations
alt.patch702 bytesIgnored: Check issue status.NoneNone

#2

Status:active» needs review

Forgot to set the status to CNR.

#3

Version:6.x-1.0-beta6» 6.x-1.x-dev
Status:needs review» closed (duplicate)

duplicate of #426740: Alternate points style template not used