From 2c6cd09fa2efa697befc03d9ba0945782c3c8858 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 7 Nov 2017 11:51:24 +0100 Subject: [PATCH] Remove "Please specify a filter" barrier fixes #77 --- application/views/scripts/list/hosts.phtml | 4 +--- application/views/scripts/list/services.phtml | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/application/views/scripts/list/hosts.phtml b/application/views/scripts/list/hosts.phtml index 8b9fa41..93c2972 100644 --- a/application/views/scripts/list/hosts.phtml +++ b/application/views/scripts/list/hosts.phtml @@ -21,9 +21,7 @@ if (! $compact): ?>
getFilter()->isEmpty()) { - echo '

' . $this->escape($this->translate('Please specify a filter')) . '

'; -} elseif ($hosts->hasResult()) { +if ($hosts->hasResult()) { foreach ($hosts->peekAhead($compact) as $host) { echo '
'; diff --git a/application/views/scripts/list/services.phtml b/application/views/scripts/list/services.phtml index 3a0e815..cf125b3 100644 --- a/application/views/scripts/list/services.phtml +++ b/application/views/scripts/list/services.phtml @@ -21,9 +21,7 @@ if (! $compact): ?>
getFilter()->isEmpty()) { - echo '

' . $this->escape($this->translate('Please specify a filter')) . '

'; -} elseif ($services->hasResult()) { +if ($services->hasResult()) { foreach ($services->peekAhead($compact) as $service) { if (! $compact) { echo '

'