diff options
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')) |