projects
/
project/filefield.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
72b7664
)
#438650: Default "list" value not working
author
Nathan Haug
Mon, 20 Apr 2009 16:14:35 +0000 (16:14 +0000)
committer
Nathan Haug
Mon, 20 Apr 2009 16:14:35 +0000 (16:14 +0000)
filefield_widget.inc
patch
|
blob
|
blame
|
history
diff --git
a/filefield_widget.inc
b/filefield_widget.inc
index
d86e999
..
6e0603a
100644
(file)
--- 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 {