summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Haug2012-03-07 09:00:54 (GMT)
committer Nathan Haug2012-03-07 09:00:54 (GMT)
commit917fa9114d5432243c9d4275846d83404199a483 (patch)
tree487b87ec6fc40e9504fe9c99a27524226c436e4f
parentb19992d970e828c90a423b3e13ed886d235420b2 (diff)
Issue #41374: Parse select or other strings before output.
-rw-r--r--components/select.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/select.inc b/components/select.inc
index 5294908..0896317 100644
--- a/components/select.inc
+++ b/components/select.inc
@@ -404,6 +404,11 @@ function webform_expand_select_or_other($element) {
$element['other']['#default_value'] = implode(', ', $element['#default_value']);
}
+ // Sanitize the options in Select or other check boxes and radio buttons.
+ if ($element['#select_type'] == 'checkboxes' || $element['#select_type'] == 'radios') {
+ $element['select']['#process'] = array_merge(element_info_property($element['#select_type'], '#process'), array('webform_expand_select_ids'));
+ }
+
return $element;
}