mirror of https://github.com/MISP/MISP
chg: [log] Convert object's fs/ls into understood format
parent
18097f05db
commit
e0bf738b11
|
@ -1057,6 +1057,7 @@ class Log extends AppModel
|
|||
}
|
||||
switch($logEntry['action']) {
|
||||
case 'add':
|
||||
$logEntry['data'] = $this->Attribute->UTCToISODatetime(['Object' => $logEntry['data']], 'Object');
|
||||
if (!empty($this->mockRecovery)) {
|
||||
$this->mockLog[] = ['model' => 'MispObject', 'action' => 'add', 'data' => $logEntry['data']];
|
||||
} else {
|
||||
|
@ -1065,6 +1066,7 @@ class Log extends AppModel
|
|||
}
|
||||
break;
|
||||
case 'edit':
|
||||
$logEntry['data'] = $this->Attribute->UTCToISODatetime(['Object' => $logEntry['data']], 'Object');
|
||||
$object = $this->MispObject->find('first', [
|
||||
'recursive' => -1,
|
||||
'conditions' => ['Object.id' => $logEntry['model_id']]
|
||||
|
|
Loading…
Reference in New Issue