From 8b1e5d05052c85e6ac36a83d79052dd79c024319 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Sun, 26 Nov 2006 02:43:48 +0000 Subject: #97231 by pwolanin. Keep the node type in a property and use it consistently. --- modules/upload/upload.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/upload/upload.module') 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')), ); } -- cgit v1.2.3