"Allow user to clear value" checkbox always checked
jenlampton - April 28, 2009 - 22:23
| Project: | Fivestar |
| Version: | 6.x-1.13 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
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,
#1
I've committed the attached patch to fix this.
#2
Thanks :-)
#3
Automatically closed -- issue fixed for 2 weeks with no activity.