Closed (fixed)
Project:
Fivestar
Version:
6.x-1.13
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Apr 2009 at 22:23 UTC
Updated:
15 May 2009 at 08:20 UTC
Jump to comment: Most recent file
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 :-)