Merge branch 'hotfix-2.1.22'

pull/195/head
iglocska 2013-09-12 16:55:18 +02:00
commit 6b3fcb6e23
1 changed files with 14 additions and 12 deletions

View File

@ -33,7 +33,7 @@ class EventsController extends AppController {
),
);
public $helpers = array('Js' => array('Jquery'), 'Pivot');
public $helpers = array('Js' => array('Jquery'));
public function beforeFilter() {
parent::beforeFilter();
@ -233,7 +233,8 @@ class EventsController extends AppController {
// tooltip for analysis
$this->set('analysisDescriptions', $this->Event->analysisDescriptions);
$this->set('analysisLevels', $this->Event->analysisLevels);
if (!$this->_isRest()) {
$this->helpers[] = 'Pivot';
if ($continue) {
$data = $this->__continuePivoting($result['Event']['id'], $result['Event']['info'], $result['Event']['date'], $fromEvent);
} else {
@ -246,6 +247,7 @@ class EventsController extends AppController {
$this->set('pivot', $pivot);
$this->set('currentEvent', $id);
}
}
private function __startPivoting($id, $info, $date){
$this->Session->write('pivot_thread', null);