sidebar review stars should default to zero

PR #2283 surfaced an existing formerly-hidden issue with star rating defaults in the sidebar of book pages.
This commit ensures the default rating is zero, not half a star.

Fixes #2291
This commit is contained in:
Hugh Rundle 2022-09-10 07:03:12 +10:00
parent c71d133d2c
commit 230d30abb8

View file

@ -37,7 +37,7 @@
type="radio"
name="rating"
value="{{ forloop.counter0 }}.5"
{% if default_rating >= forloop.counter0 %}checked{% endif %}
{% if default_rating > 0 and default_rating >= forloop.counter0 %}checked{% endif %}
/>
<input
id="{{ type|slugify }}_book{{ book.id }}_star_{{ forloop.counter }}"