- Patch #299742 by Darren Oh: #aha didn't work for checkboxes.

merge-requests/26/head
Dries Buytaert 2008-10-30 02:35:54 +00:00
parent 838b433110
commit 523d0da8b7
1 changed files with 9 additions and 1 deletions

View File

@ -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,
);
}
}
}