summaryrefslogtreecommitdiff
path: root/modules/upload
diff options
context:
space:
mode:
Diffstat (limited to 'modules/upload')
-rw-r--r--modules/upload/upload.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module
index 9dc86e52e..835ba6d63 100644
--- a/modules/upload/upload.module
+++ b/modules/upload/upload.module
@@ -348,7 +348,7 @@ function upload_form_alter($form_id, &$form) {
$form['workflow']['upload'] = array(
'#type' => 'radios',
'#title' => t('Attachments'),
- '#default_value' => variable_get('upload_'. $form['identity']['type']['#default_value'], 1),
+ '#default_value' => variable_get('upload_'. $form['#node_type']->type, 1),
'#options' => array(t('Disabled'), t('Enabled')),
);
}