Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-19216

Incorrectly-formatted floating-point number in eZ Star Rating average score

    XMLWordPrintable

Details

    Description

      Under certain conditions, on an object with eZ Star Rating enabled, the average calculated score will not be rounded or properly formatted, e.g:

      An article receives 3 different votes: 1 star, 5 stars, 4 stars
      The average calculated score is shown as: 3.33333333333333/5

      Steps to reproduce

      1. Create three user accounts
      2. Create an article with eZ Star Rating enabled
      3. As user 1, rate the article 1 star, the score will be 1
      4. As user 2, rate the article 5 stars, the score will be 3
      5. As user 4, rate the article 4 stars, the score will be 3.33333333333333

      Attachments

        Activity

          People

            bd bd
            filiped filiped
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: