updated the file model class to set updatedby and updatedon
This commit is contained in:
parent
070ccb3118
commit
26d46f8a7a
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user