Problem/Motivation

After update voting_api to 4.x I can't unvote my votes. I get:

TypeError: Drupal\votingapi\VoteResultFunctionManager::recalculateResults(): Argument #3 ($vote_type) must be of type string, null given, called in /var/www/web/modules/contrib/votingapi_reaction/src/VotingApiReactionManager.php on line 223 в Drupal\votingapi\VoteResultFunctionManager->recalculateResults() (строка 117 из /var/www/web/modules/contrib/votingapi/src/VoteResultFunctionManager.php)

Steps to reproduce

Update voting_api to 4.x on existing site. Try to unvote any vote.

Proposed resolution

Update the code. This works both voting_api 3.x and 4.x

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ivnish created an issue. See original summary.

ivnish’s picture

Assigned: ivnish » Unassigned
Status: Active » Needs review

The new code does not affect the pipeline warnings

michal.magdziarek’s picture

StatusFileSize
new1.84 KB

Attached a static patch file for this point

elaman made their first commit to this issue’s fork.

  • elaman committed 54e51262 on 8.x-1.x authored by ivnish
    Issue #3505503 by ivnish: Can not unvote after update voting_api to 4.x
    
elaman’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.