mirror of https://github.com/MISP/MISP
chg: [UI] Sort orgs by name in statistics
parent
c1aa6d51e8
commit
af8ecbf5a2
|
@ -1873,7 +1873,8 @@ class UsersController extends AppController
|
|||
$params = array(
|
||||
'fields' => array('id', 'name'),
|
||||
'recursive' => -1,
|
||||
'conditions' => array()
|
||||
'conditions' => array(),
|
||||
'order' => ['name'],
|
||||
);
|
||||
if (!$this->_isSiteAdmin() && !empty(Configure::read('Security.hide_organisation_index_from_users'))) {
|
||||
$params['conditions'] = array('Organisation.id' => $this->Auth->user('org_id'));
|
||||
|
|
|
@ -358,7 +358,7 @@ class AuditLog extends AppModel
|
|||
$validDates = $this->query($sql);
|
||||
}
|
||||
$data = [];
|
||||
foreach ($validDates as $k => $date) {
|
||||
foreach ($validDates as $date) {
|
||||
$data[(int)$date[0]['Date']] = (int)$date[0]['count'];
|
||||
}
|
||||
return $data;
|
||||
|
|
Loading…
Reference in New Issue