Merge pull request #2957 from nbuchwitz/bugfix/filter-with-parentheses-2925

Remove array syntax from default comment filter
This commit is contained in:
lippserd 2017-10-23 10:48:27 +02:00 committed by GitHub
commit 75578c5b72
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ class CommentController extends Controller
$this->view->comment = $this->comment;
if ($this->hasPermission('monitoring/command/comment/delete')) {
$listUrl = Url::fromPath('monitoring/list/comments')->setQueryString('comment_type=(comment|ack)');
$listUrl = Url::fromPath('monitoring/list/comments')->setQueryString('comment_type=comment|comment_type=ack');
$form = new DeleteCommentCommandForm();
$form
->populate(array(

View File

@ -198,7 +198,7 @@ $section->add(N_('Contactgroups'), array(
'priority' => 70
));
$section->add(N_('Comments'), array(
'url' => 'monitoring/list/comments?comment_type=(comment|ack)',
'url' => 'monitoring/list/comments?comment_type=comment|comment_type=ack',
'priority' => 80
));
$section->add(N_('Downtimes'), array(