mirror of https://github.com/MISP/MISP
fix: [overorrelation] truncation should only happen on full recorrelations
parent
d015f9cae7
commit
46dded9ea4
|
@ -125,7 +125,9 @@ class Correlation extends AppModel
|
|||
$this->FuzzyCorrelateSsdeep = ClassRegistry::init('FuzzyCorrelateSsdeep');
|
||||
$this->FuzzyCorrelateSsdeep->purge($eventId, $attributeId);
|
||||
|
||||
$this->OverCorrelatingValue->truncateTable();
|
||||
if (empty($eventId) && empty($attributeId)) {
|
||||
$this->OverCorrelatingValue->truncateTable();
|
||||
}
|
||||
|
||||
if (!$eventId) {
|
||||
$eventIds = $this->Event->find('column', [
|
||||
|
|
Loading…
Reference in New Issue