mirror of https://github.com/MISP/MISP
fix: [pull] duplicate detection fixed
- allow duplicates for deleted attributes, not for live onespull/9432/head
parent
52586959d7
commit
9b9a4ecd7f
|
@ -3840,7 +3840,7 @@ class Event extends AppModel
|
|||
if (!empty($data['Event']['Attribute'])) {
|
||||
$attributeHashes = [];
|
||||
foreach ($data['Event']['Attribute'] as $attribute) {
|
||||
if (empty($attribute['deleted'])) {
|
||||
if (!empty($attribute['deleted'])) {
|
||||
$this->Attribute->captureAttribute($attribute, $this->id, $user, 0, null, $parentEvent);
|
||||
} else {
|
||||
$attributeHash = sha1($attribute['value'] . '|' . $attribute['type'] . '|' . $attribute['category'], true);
|
||||
|
|
Loading…
Reference in New Issue