r794: Forgot to remove the comment insert query
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 30 Apr 2006 16:52:48 +0000 (16:52 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 30 Apr 2006 16:52:48 +0000 (16:52 +0000)
newreport.php

index 3841055e114e0c74a9e3fd0203b3890114eebfd8..8491514f6d50f9fc9d37da87cb23136197986b5f 100755 (executable)
@@ -30,6 +30,7 @@ $focus['newreport'] = 'focus';
 require_once('./global.php');
 require_once('./includes/functions_product.php');
 require_once('./includes/api_bug.php');
+require_once('./includes/api_comment.php');
 
 if (!can_perform('cansubmitbugs', intval($bugsys->in['productid'])))
 {
@@ -134,17 +135,6 @@ if ($_POST['do'] == 'insert')
                $comment->set('comment',        $_POST['comment']);
                $comment->insert();
                
-               // insert the comment to the database
-               $db->query("
-                       INSERT INTO " . TABLE_PREFIX . "comment
-                               (bugid, userid, dateline, comment, comment_parsed)
-                       VALUES
-                               ($bugid, " . $bugsys->userinfo['userid'] . ",
-                               $time, '" . $bugsys->in['comment'] . "',
-                               '" . nl2br($bugsys->in['comment_parsed']) . "'
-                       )"
-               );
-               
                $time = $comment->values['dateline'];
                
                $db->query("