Module: check_mk
Branch: master
Commit: c08aef3b4eaec08e1ddcb5a09ba6ae95bd960a7b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c08aef3b4eaec0…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Jan 14 10:15:27 2013 +0100
should_show_command_form returns false if nothing found
---
web/htdocs/views.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index c4b7774..5151c4d 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -2038,6 +2038,8 @@ def should_show_command_form(display_options, datasource):
if what in command["tables"] and
config.may(command["permission"]):
return True
+ return False
+
def show_command_form(is_open, datasource):
# What commands are available depends on the Livestatus table we
# deal with. If a data source provides information about more