fix: [overorrelation] truncation should only happen on full recorrelations

pull/9432/head
iglocska 2023-11-22 09:44:15 +01:00
parent d015f9cae7
commit 46dded9ea4
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 3 additions and 1 deletions

View File

@ -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', [