From 26d46f8a7a1dcce7adef5b82305df5c444d1f068 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Fri, 8 Jan 2016 17:02:03 +0000 Subject: [PATCH] updated the file model class to set updatedby and updatedon --- codepot/src/codepot/models/filemodel.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/codepot/src/codepot/models/filemodel.php b/codepot/src/codepot/models/filemodel.php index 0bb6253a..7e76945b 100644 --- a/codepot/src/codepot/models/filemodel.php +++ b/codepot/src/codepot/models/filemodel.php @@ -339,6 +339,8 @@ class FileModel extends Model $this->db->set ('description', $f['desc']); $this->db->set ('createdby', $userid); $this->db->set ('createdon', codepot_nowtodbdate()); + $this->db->set ('updatedby', $userid); + $this->db->set ('updatedon', codepot_nowtodbdate()); $this->db->insert ('file_list'); if ($this->db->trans_status() === FALSE) { @@ -422,6 +424,8 @@ class FileModel extends Model $this->db->set ('description', $f['desc']); $this->db->set ('createdby', $userid); $this->db->set ('createdon', codepot_nowtodbdate()); + $this->db->set ('updatedby', $userid); + $this->db->set ('updatedon', codepot_nowtodbdate()); $this->db->insert ('file_list'); if ($this->db->trans_status() === FALSE) {