mirror of https://github.com/MISP/MISP
fix: [hacky] readded org field to shadow attributes - just blank it out for old instances where the update failed to remove it a few years ago
parent
14400a932d
commit
6d21f1696a
|
@ -316,6 +316,10 @@ class ShadowAttribute extends AppModel
|
|||
return false;
|
||||
}
|
||||
|
||||
if (!isset($this->data['ShadowAttribute']['org'])) {
|
||||
return $this->data['ShadowAttribute']['org'] = '';
|
||||
}
|
||||
|
||||
if (empty($this->data['ShadowAttribute']['timestamp'])) {
|
||||
$date = new DateTime();
|
||||
$this->data['ShadowAttribute']['timestamp'] = $date->getTimestamp();
|
||||
|
|
Loading…
Reference in New Issue