This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.
Rounding issue with star-rating #3413
Closed
Description
When using the star rating, the rating doesn't handle fractions correctly, causing ratings like 7.1 to be displayed as 8 stars, instead of applying a rounding.
I'm not sure how to fix it, but the problem is caused by the rating.html, in this code:
$index < value
When applying rounding here, this would work, but I'm not sure how I can inject Math into this template. If someone can explain me how, I don't mind creating a pull request with appropriate tests.