fix: Fixed an issue where mass accepting proposals didn't unpublish the event

- @rommelfs sees all
pull/2883/head
iglocska 2018-01-18 23:35:08 +01:00
parent dfa4d1633a
commit 4e56f2a27a
1 changed files with 1 additions and 0 deletions

View File

@ -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) {