Instead of changing dislike count, like count is changing while clicking dislike button after upgrading to version 2.0.0

Iam using ,

Drupal :10.2.4
PHP: 8.2.14

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:

  • 2.x Comparechanges, plain diff MR !8

Comments

mobym created an issue. See original summary.

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

pavelgerasuta’s picture

I created a patch so that it could be applied before the branch was accepted.

volman’s picture

Version: 2.0.0 » 2.0.1
Status: Active » Needs review

The bug still exists on Like & Dislike 2.0.1.
I reproduced it on Drupal 11.2.4 with PHP 8.3.24.

#4 fixed it and works live on my production site.

Thanks @pavelgerasuta!

divya.sejekan’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new915.06 KB

Applied MR!8 . Fix is working and issue is resolved

Steps :
Enable the like and dislike button in Content type
Verify the dislike button

Fix works

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

  • berdir committed 49e94c69 on 2.x authored by iamfil
    fix: #3432104 Dislike button not working
    
    By: iamfil
    By: volman
    By:...
berdir’s picture

Status: Reviewed & tested by the community » Fixed

Confirmed manually, the tests also fails without this, they just don't run due to misconfigured CI that I'll get to after getting the most obvious fixes in.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.