mirror of https://github.com/MISP/MISP
fix: [Objects] Adding an object would not unpublish the event
parent
e08f1e2f4b
commit
8c450da4b5
|
@ -221,7 +221,7 @@ class ObjectsController extends AppController
|
|||
}
|
||||
if ($error === true) {
|
||||
$result = $this->MispObject->saveObject($object, $eventId, $template, $this->Auth->user(), $errorBehaviour = 'halt');
|
||||
if ($result === true) {
|
||||
if (is_numeric($result)) {
|
||||
$this->MispObject->Event->unpublishEvent($eventId);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue