Issue 156: SSH keys added are not getting proper added date set
This commit is contained in:
parent
ac5ced20a7
commit
8c42270a9e
@ -154,6 +154,14 @@ class IDF_Key extends Pluf_Model
|
|||||||
return sha1($keyName.":".$keyData);
|
return sha1($keyName.":".$keyData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function preSave($create = false)
|
||||||
|
{
|
||||||
|
if ($create) {
|
||||||
|
$this->creation_dtime = gmdate('Y-m-d H:i:s');
|
||||||
|
}
|
||||||
|
parent::preSave($create);
|
||||||
|
}
|
||||||
|
|
||||||
function postSave($create=false)
|
function postSave($create=false)
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@ -179,10 +187,6 @@ class IDF_Key extends Pluf_Model
|
|||||||
$params = array('key' => $this, 'created' => $create);
|
$params = array('key' => $this, 'created' => $create);
|
||||||
Pluf_Signal::send('IDF_Key::postSave',
|
Pluf_Signal::send('IDF_Key::postSave',
|
||||||
'IDF_Key', $params);
|
'IDF_Key', $params);
|
||||||
|
|
||||||
if ($create) {
|
|
||||||
$this->creation_dtime = gmdate('Y-m-d H:i:s');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function preDelete()
|
function preDelete()
|
||||||
|
Loading…
Reference in New Issue
Block a user