mirror of https://github.com/MISP/MISP
chg: [log] Convert shadowAtribute's fs/ls into understood format
parent
e0bf738b11
commit
f56cab6e49
|
@ -947,6 +947,7 @@ class Log extends AppModel
|
|||
if (!empty($logEntry['data']['value2'])) {
|
||||
$logEntry['data']['value'] .= '|' . $logEntry['data']['value2'];
|
||||
}
|
||||
$logEntry['data'] = $this->Attribute->UTCToISODatetime(['ShadowAttribute' => $logEntry['data']], 'ShadowAttribute');
|
||||
if (!empty($this->mockRecovery)) {
|
||||
$this->mockLog[] = ['model' => 'ShadowAttribute', 'action' => 'add', 'data' => $logEntry['data']];
|
||||
} else {
|
||||
|
@ -1052,6 +1053,9 @@ class Log extends AppModel
|
|||
|
||||
private function __executeRecoveryMispObject($logEntry)
|
||||
{
|
||||
if (empty($this->Attribute)) {
|
||||
$this->Attribute = ClassRegistry::init('Attribute');
|
||||
}
|
||||
if (empty($this->MispObject)) {
|
||||
$this->MispObject = ClassRegistry::init('MispObject');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue