Monitoring/History: Add menu entry

refs #4765
This commit is contained in:
Eric Lippmann 2013-10-16 14:55:06 +02:00
parent bb8cad2a85
commit 68f20e6231
2 changed files with 9 additions and 10 deletions

View File

@ -23,8 +23,11 @@ Comments = "/monitoring/list/comments"
Contacts = "/monitoring/list/contacts" Contacts = "/monitoring/list/contacts"
Contact Groups = "/monitoring/list/contactgroups" Contact Groups = "/monitoring/list/contactgroups"
Servicegroups.title = "Servicegroups" Servicegroups.title = "Servicegroups"
Servicegroups.route = "/monitoring/list/servicegroups" Servicegroups.route = "/monitoring/list/servicegroups"
Hostgroups.title = "Hostgroups" Hostgroups.title = "Hostgroups"
Hostgroups.route = "/monitoring/list/hostgroups" Hostgroups.route = "/monitoring/list/hostgroups"
History.title = "History"
History.route = "/monitoring/list/eventhistory"

View File

@ -369,17 +369,13 @@ class Monitoring_ListController extends MonitoringController
public function eventhistoryAction() public function eventhistoryAction()
{ {
$query = EventHistoryView::fromRequest( $query = EventHistoryView::fromRequest($this->_request)->getQuery();
$this->_request $this->handleFormatRequest($query);
)->getQuery();
$this->view->history = $query->paginate(); $this->view->history = $query->paginate();
$this->setupSortControl( $this->setupSortControl(
array( array(
) )
); );
$this->handleFormatRequest($query);
} }
/** /**