updated the file model class to set updatedby and updatedon

This commit is contained in:
hyung-hwan 2016-01-08 17:02:03 +00:00
parent 070ccb3118
commit 26d46f8a7a

View File

@ -339,6 +339,8 @@ class FileModel extends Model
$this->db->set ('description', $f['desc']); $this->db->set ('description', $f['desc']);
$this->db->set ('createdby', $userid); $this->db->set ('createdby', $userid);
$this->db->set ('createdon', codepot_nowtodbdate()); $this->db->set ('createdon', codepot_nowtodbdate());
$this->db->set ('updatedby', $userid);
$this->db->set ('updatedon', codepot_nowtodbdate());
$this->db->insert ('file_list'); $this->db->insert ('file_list');
if ($this->db->trans_status() === FALSE) if ($this->db->trans_status() === FALSE)
{ {
@ -422,6 +424,8 @@ class FileModel extends Model
$this->db->set ('description', $f['desc']); $this->db->set ('description', $f['desc']);
$this->db->set ('createdby', $userid); $this->db->set ('createdby', $userid);
$this->db->set ('createdon', codepot_nowtodbdate()); $this->db->set ('createdon', codepot_nowtodbdate());
$this->db->set ('updatedby', $userid);
$this->db->set ('updatedon', codepot_nowtodbdate());
$this->db->insert ('file_list'); $this->db->insert ('file_list');
if ($this->db->trans_status() === FALSE) if ($this->db->trans_status() === FALSE)
{ {