fix: [breakOnDuplicate] invalid placement return, affects #6917

- as reported by @github-germ
pull/6976/head
iglocska 2021-02-03 08:48:10 +01:00
parent 2b5b5f97de
commit a335dff2e2
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -912,8 +912,8 @@ class MispObject extends AppModel
'title' => 'Object dropped due to it being a duplicate and breakOnDuplicate being requested for Event ' . $eventId,
'change' => 'Duplicate object found.',
));
return true;
}
return true;
}
if (empty($log)) {
$log = ClassRegistry::init('Log');