summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--filefield_widget.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/filefield_widget.inc b/filefield_widget.inc
index d86e999..6e0603a 100644
--- a/filefield_widget.inc
+++ b/filefield_widget.inc
@@ -351,11 +351,10 @@ function filefield_widget_process($element, $edit, &$form_state, $form) {
if ($field['list_field']) {
$element['list'] = array(
- '#type' => 'checkbox',
+ '#type' => empty($item['fid']) ? 'hidden' : 'checkbox',
'#title' => t('List'),
'#value' => isset($item['list']) ? $item['list'] : $field['list_default'],
'#attributes' => array('class' => 'filefield-list'),
- '#access' => !empty($item['fid']),
);
}
else {