mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
DataView\EventHistory: default sort by timestamp
It doesn't make much sense to sort history by "hostname" hardcoded to service-only host columns. Default is now timestamp DESC, internally this is mapped to raw_timestamp.
This commit is contained in:
parent
dd595a2ad3
commit
660f84b22f
@ -63,11 +63,9 @@ class EventHistory extends DataView
|
|||||||
public function getSortRules()
|
public function getSortRules()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
'raw_timestamp' => array(
|
|
||||||
'order' => self::SORT_DESC
|
|
||||||
),
|
|
||||||
'timestamp' => array(
|
'timestamp' => array(
|
||||||
'order' => self::SORT_DESC
|
'columns' => array('raw_timestamp'),
|
||||||
|
'order' => 'DESC'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user