A few small backend changes

This commit is contained in:
Thomas Gelf 2014-02-18 19:42:18 +00:00
parent 249018808b
commit 77dada8318
4 changed files with 12 additions and 5 deletions

View File

@ -74,7 +74,7 @@ class Controller extends ActionController
'service_attempt', 'service_attempt',
'service_last_state_change', 'service_last_state_change',
'service_icon_image', 'service_icon_image',
'service_long_output', // 'service_long_output',
'service_is_flapping', 'service_is_flapping',
'service_state_type', 'service_state_type',
'service_handled', 'service_handled',
@ -83,7 +83,7 @@ class Controller extends ActionController
'service_notifications_enabled', 'service_notifications_enabled',
'service_action_url', 'service_action_url',
'service_notes_url', 'service_notes_url',
'service_last_comment', // 'service_last_comment',
'service_active_checks_enabled', 'service_active_checks_enabled',
'service_passive_checks_enabled', 'service_passive_checks_enabled',
'current_check_attempt' => 'service_current_check_attempt', 'current_check_attempt' => 'service_current_check_attempt',

View File

@ -125,14 +125,14 @@ class HostStatus extends DataView
'host_severity', 'host_severity',
'host_last_state_change', 'host_last_state_change',
), ),
'order' => self::SORT_ASC 'order' => self::SORT_DESC
) )
); );
} }
public function getFilterColumns() public function getFilterColumns()
{ {
return array('hostgroup', 'servicegroup', 'service_problems'); return array('hostgroup', 'service_problems');
} }
public function isValidFilterTarget($column) public function isValidFilterTarget($column)

View File

@ -151,6 +151,13 @@ class ServiceStatus extends DataView
'host_last_state_change', 'host_last_state_change',
), ),
'order' => self::SORT_ASC 'order' => self::SORT_ASC
),
'service_severity' => array(
'columns' => array(
'service_severity',
'service_last_state_change',
),
'order' => self::SORT_DESC
) )
); );
} }

View File

@ -15,7 +15,7 @@ class Service extends AbstractObject
{ {
$this->fetchComments() $this->fetchComments()
->fetchDowntimes() ->fetchDowntimes()
->fetchHostgroups() //->fetchHostgroups()
->fetchServicegroups() ->fetchServicegroups()
->fetchContacts() ->fetchContacts()
->fetchContactGroups() ->fetchContactGroups()