fixed a bug of dstoring a wrong value into the createdon field
This commit is contained in:
parent
316aa08bff
commit
c9cb19ae17
@ -386,7 +386,7 @@ class File extends Controller
|
||||
{
|
||||
$data['message'] = $this->lang->line('MSG_FORM_INPUT_INCOMPLETE');
|
||||
$data['file'] = $file;
|
||||
$this->load->view ($this->VIEW_EDIT, $data);
|
||||
$this->load->view ($this->VIEW_EDIT, $data);
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -408,7 +408,7 @@ class File extends Controller
|
||||
else
|
||||
{
|
||||
$data['file'] = $file;
|
||||
$this->load->view ($this->VIEW_EDIT, $data);
|
||||
$this->load->view ($this->VIEW_EDIT, $data);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -43,7 +43,7 @@ class FileModel extends Model
|
||||
$this->db->set ('summary', $file->summary);
|
||||
$this->db->set ('md5sum', $file->md5sum);
|
||||
$this->db->set ('description', $file->description);
|
||||
$this->db->set ('createdon', $userid);
|
||||
$this->db->set ('createdon', date('Y-m-d H:i:s'));
|
||||
$this->db->set ('createdby', $userid);
|
||||
$this->db->set ('updatedon', date('Y-m-d H:i:s'));
|
||||
$this->db->set ('updatedby', $userid);
|
||||
|
@ -117,7 +117,7 @@ $this->load->view (
|
||||
<div id="file_show_mainarea_result_info">
|
||||
|
||||
<ul>
|
||||
<li><?=$this->lang->line('Created on')?> <?= $file->updatedon ?></li>
|
||||
<li><?=$this->lang->line('Created on')?> <?= $file->createdon ?></li>
|
||||
<li><?=$this->lang->line('Created by')?> <?= $file->createdby ?></li>
|
||||
<li><?=$this->lang->line('Last updated on')?> <?= $file->updatedon ?></li>
|
||||
<li><?=$this->lang->line('Last updated by')?> <?= $file->updatedby ?></li>
|
||||
|
Loading…
Reference in New Issue
Block a user