Module: check_mk
Branch: master
Commit: 26c816985ec35590208e889fdfb3a37174e0e51d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=26c816985ec355…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Mar 2 17:16:59 2017 +0100
quicksearch without results defaults to allservices view
Change-Id: I1fbb471d5501b493a02def58161f03d9a7c7d018
---
web/htdocs/sidebar.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/sidebar.py b/web/htdocs/sidebar.py
index 49cc064..c574800 100644
--- a/web/htdocs/sidebar.py
+++ b/web/htdocs/sidebar.py
@@ -1044,7 +1044,10 @@ class LivestatusQuicksearch(object):
use_search_object = search_object
break
else:
- return
+ return html.makeuri([("view_name", "allservices"),
+ ("filled_in", "filter"),
("service_regex", self._query)],
+ delvars = "q",
+ filename = "view.py")
return search_object.get_search_url()
@@ -1143,5 +1146,5 @@ def generate_results(query):
def generate_search_results(query):
quicksearch = LivestatusQuicksearch(query)
- return quicksearch.generate_search_url()
+ return quicksearch.generate_search_url()