getResults is not returning the correct results

Created on 1 August 2018, almost 6 years ago
Updated 22 October 2023, 8 months ago

I try Voting Api Widget and the module is not getting a correct result from the methods "getResults" in class "VotingApiWidgetBase" and "BaseRatingForm". votingapiResult in Voting Api module seems to have changed, and now return results based in vote type (in this case $entity->bundle()), I think that previously it worked well that way since nobody had reported this issue and certainly think it's an improvement in Voting Api module but I think we should modify these methods.

I have made a patch that seems to work and fix the issue, this is attached.
Regards
Juan

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡»πŸ‡ͺVenezuela jvizcarrondo

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024