Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
fivestar_field.inc line 193.
'#default_value' => $widget['allow_clear'] ? $widget['allow_clear'] : 1,
will always reset this form element to true. It should be something like
'#default_value' => ($widget['allow_clear'] == 0) ? $widget['allow_clear'] : 1,
or perhaps
'#default_value' => $widget['allow_clear'] ? $widget['allow_clear'] : 0,
Comment | File | Size | Author |
---|---|---|---|
#1 | fivestar_allow_clear.patch | 714 bytes | quicksketch |
Comments
Comment #1
quicksketchI've committed the attached patch to fix this.
Comment #2
jenlamptonThanks :-)