- Patch #299742 by Darren Oh: #aha didn't work for checkboxes.
parent
838b433110
commit
523d0da8b7
|
@ -1994,7 +1994,15 @@ function form_process_checkboxes($element) {
|
|||
}
|
||||
foreach ($element['#options'] as $key => $choice) {
|
||||
if (!isset($element[$key])) {
|
||||
$element[$key] = array('#type' => 'checkbox', '#processed' => TRUE, '#title' => $choice, '#return_value' => $key, '#default_value' => isset($value[$key]), '#attributes' => $element['#attributes']);
|
||||
$element[$key] = array(
|
||||
'#type' => 'checkbox',
|
||||
'#processed' => TRUE,
|
||||
'#title' => $choice,
|
||||
'#return_value' => $key,
|
||||
'#default_value' => isset($value[$key]),
|
||||
'#attributes' => $element['#attributes'],
|
||||
'#ahah' => isset($element['#ahah']) ? $element['#ahah'] : NULL,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue