Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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']);
Comment | File | Size | Author |
---|---|---|---|
#5 | bug_displaying_undo-2535690-5.patch | 767 bytes | abramm |
Comments
Comment #1
dench0 CreditAttribution: dench0 commentedComment #2
dench0 CreditAttribution: dench0 commentedComment #3
dench0 CreditAttribution: dench0 commentedComment #4
dench0 CreditAttribution: dench0 commentedComment #5
abrammThe fix worked for me.
Attached patch.