summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt1
-rw-r--r--modules/optionwidgets/optionwidgets.module1
2 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 8879c1c..319268b 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -55,6 +55,7 @@ Bugfixes:
- #551280 by xurizaemon - Typo fix for "this field cannot hold more that 3 values" error message.
- #558744 by chellomere - Fix one of the swedish translation strings to be correct, and much clearer.
- #562260 by przadka - content_db_index_exists() has wrong syntax for PostgreSQL.
+- #567168 by jcmarco - Checkbox required not defined for on/off widgets.
Changes:
- #421116 Move content.js to js/content.admin.js for consistency with location of new js files.
diff --git a/modules/optionwidgets/optionwidgets.module b/modules/optionwidgets/optionwidgets.module
index 69a91ad..6ddddef 100644
--- a/modules/optionwidgets/optionwidgets.module
+++ b/modules/optionwidgets/optionwidgets.module
@@ -291,6 +291,7 @@ function optionwidgets_onoff_process($element, $edit, &$form_state, $form) {
'#type' => 'checkbox',
'#title' => isset($options[$on_value]) ? $options[$on_value] : '',
'#description' => $element['#description'],
+ '#required' => isset($element['#required']) ? $element['#required'] : $field['required'],
'#default_value' => isset($element['#value'][$field_key][0]) ? $element['#value'][$field_key][0] == $on_value : FALSE,
'#return_value' => $on_value,
);