Fix Monitoring\Controller using renamed HostStatusView

refs #4469
This commit is contained in:
Jannis Moßhammer 2013-10-14 14:08:20 +02:00
parent d33cec78de
commit df81c85090
1 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
namespace Icinga\Module\Monitoring;
use Icinga\Application\Config as IcingaConfig;
use Icinga\Module\Monitoring\DataView\HostAndServiceStatus as HostAndServiceStatusView;
use Icinga\Module\Monitoring\DataView\ServiceStatus as ServiceStatusView;
use Icinga\Web\Controller\ActionController;
/**
@ -54,13 +54,13 @@ class Controller extends ActionController
'max_check_attempts' => 'service_max_check_attempts'
);
if ($params === null) {
$query = HostAndServiceStatusView::fromRequest(
$query = ServiceStatusView::fromRequest(
$this->_request,
$columns
)->getQuery();
} else {
$params['backend'] = $this->_request->getParam('backend');
$query = HostAndServiceStatusView::fromParams(
$query = ServiceStatusView::fromParams(
$params,
$columns
)->getQuery();