Commit 22920f33 authored by quicksketch's avatar quicksketch

#636548: List files by default only checks box for first file.

parent a11bb496
......@@ -368,7 +368,7 @@ function filefield_widget_process($element, $edit, &$form_state, $form) {
$element['list'] = array(
'#type' => empty($item['fid']) ? 'hidden' : 'checkbox',
'#title' => t('List'),
'#value' => isset($item['list']) ? $item['list'] : $field['list_default'],
'#value' => isset($item['list']) && !empty($item['fid']) ? $item['list'] : $field['list_default'],
'#attributes' => array('class' => 'filefield-list'),
);
}
......
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