From 6031f1f3c1940498a860a3aa9df293f027a51e89 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 30 Apr 2006 17:14:14 +0000 Subject: [PATCH] r797: Add a post_insert() method --- includes/api_bug.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/includes/api_bug.php b/includes/api_bug.php index b1510cc..02a05d6 100644 --- a/includes/api_bug.php +++ b/includes/api_bug.php @@ -88,6 +88,17 @@ class BugAPI extends API $this->set('dateline', time()); } + // ################################################################### + /** + * Post-insert + * + * @access private + */ + function post_insert() + { + $this->registry->db->query("INSERT INTO " . TABLE_PREFIX . "vote (bugid, votefor, voteagainst) VALUES (" . $this->insertid . ", 0, 0)"); + } + // ################################################################### /** * Verify: productid -- 2.22.5