Merge pull request #3826 from MISP/sortingOnTimestamp

chg: [eventview] changed default attribute sorting to timestamp->desc
pull/3880/head
Steve Clement 2018-11-13 12:38:17 +09:00 committed by GitHub
commit af265b299a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1268,7 +1268,8 @@ class EventsController extends AppController
}
}
}
$params = $this->Event->rearrangeEventForView($event);
$passedArgs = array('sort' => 'timestamp', 'direction' => 'desc');
$params = $this->Event->rearrangeEventForView($event, $passedArgs);
$this->params->params['paging'] = array($this->modelClass => $params);
$this->set('event', $event);
$dataForView = array(