mirror of https://github.com/MISP/MISP
fix: Fixed an issue where mass accepting proposals didn't unpublish the event
- @rommelfs sees allpull/2883/head
parent
dfa4d1633a
commit
4e56f2a27a
|
@ -1133,6 +1133,7 @@ class ShadowAttributesController extends AppController {
|
|||
$response = $this->__accept($a['ShadowAttribute']['id']);
|
||||
if (isset($response['saved'])) $successes[] = $a['ShadowAttribute']['id'];
|
||||
}
|
||||
$this->ShadowAttribute->Event->unpublishEvent($id, true);
|
||||
$fails = array_diff($ids, $successes);
|
||||
$this->autoRender = false;
|
||||
if (count($fails) == 0 && count($successes) > 0) {
|
||||
|
|
Loading…
Reference in New Issue