Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-18902

Computation of average rating is wrong when removing all ratings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.10.8
    • Fix Version/s: 13.4.3, 12.10.9, 13.7-rc-1
    • Component/s: Ratings
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      The computation of average ratings is computing a NaN when the number of votes reach 0. It makes all further computation of the average wrong.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              surli Simon Urli
              Reporter:
              surli Simon Urli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: