diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-10-13 07:50:44 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-10-13 07:50:44 +0000 |
commit | 086b034d3ba202e81e656ce99bb8933089263edf (patch) | |
tree | e19a3f5c19ce88720a7360fdf896776bb5eeb5a5 /h-source/Application/Models/IssuesModel.php | |
parent | 9e0955c96d888fc2e00014498d095a7d65ab48fb (diff) |
improved history
Diffstat (limited to 'h-source/Application/Models/IssuesModel.php')
-rw-r--r-- | h-source/Application/Models/IssuesModel.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/h-source/Application/Models/IssuesModel.php b/h-source/Application/Models/IssuesModel.php index eec86be..9d6a4ef 100644 --- a/h-source/Application/Models/IssuesModel.php +++ b/h-source/Application/Models/IssuesModel.php @@ -20,7 +20,7 @@ if (!defined('EG')) die('Direct access not allowed!'); -class IssuesModel extends Model_Tree { +class IssuesModel extends BaseModel { public function __construct() { $this->_tables = 'issues'; @@ -103,4 +103,14 @@ class IssuesModel extends Model_Tree { { return parent::update($id); } + + public function insert() + { + if (parent::insert()) + { + //update the history + $this->updateHistory('issue_ins'); + } + } + }
\ No newline at end of file |