parent
b83abc4dbc
commit
8187135564
|
@ -30,7 +30,7 @@ class Monitoring_CommentsController extends Controller
|
||||||
'comment_internal_id',
|
'comment_internal_id',
|
||||||
(string)$this->params
|
(string)$this->params
|
||||||
));
|
));
|
||||||
$this->comments = $this->backend->select()->from('comment', array(
|
$query = $this->backend->select()->from('comment', array(
|
||||||
'id' => 'comment_internal_id',
|
'id' => 'comment_internal_id',
|
||||||
'objecttype' => 'object_type',
|
'objecttype' => 'object_type',
|
||||||
'comment' => 'comment_data',
|
'comment' => 'comment_data',
|
||||||
|
@ -43,8 +43,10 @@ class Monitoring_CommentsController extends Controller
|
||||||
'service_description',
|
'service_description',
|
||||||
'host_display_name',
|
'host_display_name',
|
||||||
'service_display_name'
|
'service_display_name'
|
||||||
))->addFilter($this->filter)->getQuery()->fetchAll();
|
))->addFilter($this->filter);
|
||||||
|
$this->applyRestriction('monitoring/filter/objects', $query);
|
||||||
|
|
||||||
|
$this->comments = $query->getQuery()->fetchAll();
|
||||||
if (false === $this->comments) {
|
if (false === $this->comments) {
|
||||||
throw new Zend_Controller_Action_Exception($this->translate('Comment not found'));
|
throw new Zend_Controller_Action_Exception($this->translate('Comment not found'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue