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/TalkModel.php | |
parent | 9e0955c96d888fc2e00014498d095a7d65ab48fb (diff) |
improved history
Diffstat (limited to 'h-source/Application/Models/TalkModel.php')
-rw-r--r-- | h-source/Application/Models/TalkModel.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/h-source/Application/Models/TalkModel.php b/h-source/Application/Models/TalkModel.php index b98a5a4..0edcdda 100644 --- a/h-source/Application/Models/TalkModel.php +++ b/h-source/Application/Models/TalkModel.php @@ -20,7 +20,7 @@ if (!defined('EG')) die('Direct access not allowed!'); -class TalkModel extends Model_Tree { +class TalkModel extends BaseModel { public function __construct() { $this->_tables = 'talk'; @@ -52,11 +52,14 @@ class TalkModel extends Model_Tree { { if (parent::insert()) { + //update the history + $this->updateHistory('talk_ins'); + if (strcmp($this->values['id_hard'],0) !== 0) { $clean['id_hard'] = (int)$this->values['id_hard']; $clean['created_by'] = (int)$this->values['created_by']; - + $hard = new HardwareModel(); $users = $hard->select('username,e_mail') ->where(array('id_hard'=>$clean['id_hard'],'has_confirmed'=>0,'deleted'=>'no')) |