### Eclipse Workspace Patch 1.0
#P CCK 6.x-2.x
Index: includes/content.node_form.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cck/includes/Attic/content.node_form.inc,v
retrieving revision 1.7.2.19
diff -u -r1.7.2.19 content.node_form.inc
--- includes/content.node_form.inc	2 Jun 2009 20:18:27 -0000	1.7.2.19
+++ includes/content.node_form.inc	25 Jun 2009 11:11:05 -0000
@@ -42,17 +42,7 @@
   $form_element = array();
   $field_name = $field['field_name'];
 
-  // See if access to this form element is restricted,
-  // if so, skip widget processing and just set the value.
-  $access = content_access('edit', $field);
-  if (!$access) {
-    $addition[$field_name] = array(
-      '#access' => $access,
-      '#type' => 'value',
-      '#value' => $node->$field_name,
-      );
-    return $addition;
-  }
+  $items = array();
 
   // TODO: is the "if (function_exists($function)) {" needed ?
   // defining the $function here makes it unclear where it is actually called
@@ -64,7 +54,6 @@
     // - Node values (when editing an existing node), or pre-filled values (when
     //   creating a new node translation)
     // - Default values set for the field (when creating a new node).
-    $items = array();
     if (!empty($form_state['values'][$field['field_name']])) {
       $items = $form_state['values'][$field['field_name']];
       // If there was an AHAH add more button in this field, don't save it.
@@ -86,6 +75,18 @@
       }
     }
 
+    // See if access to this form element is restricted,
+    // if so, skip widget processing and just set the value.
+    $access = content_access('edit', $field);
+    if (!$access) {
+      $addition[$field_name] = array(
+        '#access' => $access,
+        '#type' => 'value',
+        '#value' => $items,
+      );
+      return $addition;
+    }
+
     // If content module handles multiple values for this form element,
     // and not selecting an individual $delta, process the multiple value form.
     if (!isset($get_delta) && content_handle('widget', 'multiple values', $field) == CONTENT_HANDLE_CORE) {
