*** C:/Users/GaB/Documents/image_fupload_imagefield.module	Tue Apr 06 13:16:20 2010
--- C:/Users/GaB/Documents/image_fupload_imagefield.module_patched	Tue Apr 06 13:09:07 2010
***************
*** 275,281 ****
      // if we are editing already existing node, remove nid to prevent errors because node was changed before
      if (isset($form['nid']['#value'])) {
        $form['gallery_nid']['#value'] = $form['nid']['#value'];
!       unset($form['nid']['#value'], $form_state['values']['nid']);
      }
      
      // Form validation
--- 275,281 ----
      // if we are editing already existing node, remove nid to prevent errors because node was changed before
      if (isset($form['nid']['#value'])) {
        $form['gallery_nid']['#value'] = $form['nid']['#value'];
!       //unset($form['nid']['#value'], $form_state['values']['nid']);
      }
      
      // Form validation
***************
*** 311,316 ****
--- 311,322 ----
              // add new files to node
              $node->$field_name = array(0 => $file);  
              // save node
+             
+             // get last changed
+             $last_node_state = load_node($node->nid);
+             $node->changed = $last_node_state->changed;
+                       	
+                       	
              node_save($node);
            
              // report to watchdog
