Commit 010dc7af authored by yched's avatar yched

#140687 fix 'single checkbox' stick on checked when used with text values. Thx moggy

parent 3d0f53a7
// $Id$
4.7--1.x
========
Bugfix
------
Field / widget modules
- #140687 OptionWidgets : fix 'single checkbox' stick on checked when used with text values.
4.7--1.6-1
==========
......
......@@ -117,7 +117,7 @@ function optionwidgets_widget($op, &$node, $field, &$items) {
$form[$field['field_name']]['keys'] = array(
'#type' => 'checkbox',
'#title' => $options[$on_value],
'#default_value' => $items['default keys'][0],
'#default_value' => ($items['default keys'][0] == $on_value) ? 1 : 0,
'#return_value' => $on_value,
'#description' => t($field['widget']['description']),
'#required' => FALSE,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment