fix: Remove delegation request once event delegation is accepted

- TODO, cleanup of zombie delegation requests
pull/2339/head
iglocska 2017-07-12 16:20:21 +02:00
parent f4041cd100
commit d7df929500
1 changed files with 1 additions and 0 deletions

View File

@ -101,6 +101,7 @@ class EventDelegationsController extends AppController {
'change' => 'Starting the transfer of event ' . $delegation['Event']['id'] . ' to organisation ' . $this->Auth->user('Organisation')['name'],
));
$result = $this->EventDelegation->transferEvent($delegation, $this->Auth->user());
$this->EventDelegation->delete($delegation['EventDelegation']['id']);
if ($result) {
$this->Log->create();
$this->Log->save(array(