diff -urp --strip-trailing-cr ../flatcomments/flatcomments.module ./flatcomments.module
--- ../flatcomments/flatcomments.module	2009-05-27 22:35:10.000000000 +0200
+++ ./flatcomments.module	2009-05-27 22:18:48.000000000 +0200
@@ -12,17 +12,25 @@
 function flatcomments_form_alter(&$form, $form_state, $form_id) {
   switch ($form['#id']) {
     case 'comment-form':
-      $node = node_load($form['nid']['#value']);
-      $display_mode = (int)variable_get('comment_default_mode_' . $node->type, 0);
-      // Only alter new comments.
-      if (($display_mode === 1 || $display_mode === 2) && !$form['cid']['#value']) {
-        // Setting pid to NULL makes the comment a reply to the node.
-        $form['pid']['#value'] = NULL;
-      }
+      array_unshift($form['#submit'], 'flatcomments_reset_parent');
       break;
 
     case 'node-type-form':
       $form['comment']['comment_default_mode']['#description'] .= t(' <strong>Flatcomments enabled:</strong> Flat list options will force replies to be to the main post.');
       break;
   }
-}
\ Chybí znak konce řádku na konci souboru
+}
+
+/**
+ * Form submit handler. Removes parent information, before the comment
+ * get saved into the database.
+ */
+function flatcomments_reset_parent($form, &$form_state) {
+  $node = node_load($form_state['values']['nid']);
+  $display_mode = (int)variable_get('comment_default_mode_' . $node->type, 0);
+  // Only alter new comments.
+  if (($display_mode === 1 || $display_mode === 2) && !$form_state['values']['cid']) {
+    // Setting pid to NULL makes the comment a reply to the node.
+    $form_state['values']['pid'] = NULL;
+  }
+}
diff -urp --strip-trailing-cr ../flatcomments/README.txt ./README.txt
--- ../flatcomments/README.txt	2009-05-27 22:34:54.000000000 +0200
+++ ./README.txt	2009-05-21 22:01:59.000000000 +0200
@@ -32,18 +32,10 @@ With flatcomments enabled and flat list 
    (Recommended: Disable the "Flat comments existing" sub-module after use.)
 
 
-
--- Remaining problems
-
-You will notice that when replying to a comment you'll see the content of the
-'parent' comment, but as soon as you have previewed your comment you will see
-the content of the node.
-
-
 -- Developers
 
 Current maintainer:
 Alan Doucette (dragonwize)
 
 Original creator:
-Heine Deelstra (http://drupal.org/user/17943/contact)
\ Chybí znak konce řádku na konci souboru
+Heine Deelstra (http://drupal.org/user/17943/contact)
