Fix to removing the root element causing issues with pivoting

pull/195/head
iglocska 2013-09-06 10:04:15 +02:00
parent 22593b2378
commit 5d25348780
1 changed files with 1 additions and 0 deletions

View File

@ -303,6 +303,7 @@ class EventsController extends AppController {
if ($pivot['id'] == $id) {
$pivot = null;
$this->Session->write('pivot_thread', null);
$this->redirect(array('controller' => 'events', 'action' => 'view', $eventId));
} else {
$pivot = $this->__doRemove($pivot, $id);
}