Archived
1
0
Fork 0

FIX false selected sid on server delete

This commit is contained in:
Varakh 2018-04-05 14:27:44 +02:00
parent 34a8ab231f
commit 2489e2c209

View file

@ -14,6 +14,12 @@ final class ServerDeleteAction extends AbstractAction
$dataResult = $this->ts->getInstance()->serverDelete($sid);
// remove selected server from session
if ($this->session->exists('sid') && $this->session->get('sid') == $sid) {
$this->session->delete('sid');
$this->session->delete('name');
}
$this->flash->addMessage('success', $this->translator->trans('done'));
return $response->withRedirect('/servers');
}