You need change line 245 to

$criteria['uid'] = $criteria['vote_source'] = $user->uid;

and line 191

$criteria['uid'] = $criteria['vote_source'] = $user->uid;

Otherwise for registered users $criteria['vote_source'] will be null, and they cant undo their votes.
Also will be better to allow other modules possibilities to change entire criteria:

drupal_alter('plus1_source', $criteria);

instead:

drupal_alter('plus1_source', $criteria['vote_source']);
CommentFileSizeAuthor
#5 bug_displaying_undo-2535690-5.patch767 bytesabramm
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dench0’s picture

Issue summary: View changes
dench0’s picture

Issue summary: View changes
dench0’s picture

Issue summary: View changes
dench0’s picture

Issue summary: View changes
abramm’s picture

The fix worked for me.
Attached patch.