Skip to content

Commit

Permalink
10037 FIX Some views (must search views) were always empty when added…
Browse files Browse the repository at this point in the history
… to a dashboard

When viewing a "search only" aka "must search view", like the host and service search
views and adding it as dashlet to a dashboard, the current search context was taken
over into the dashlet, but the view always displayed an empty list of hosts or services.

FEED-3919

Change-Id: Iecf36d3e7ba92ff2fe44977c31c2a5bf02bc4223
  • Loading branch information
LarsMichelsen committed Sep 11, 2019
1 parent 6a5d5b0 commit 6e1625c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .werks/10037
@@ -0,0 +1,13 @@
Title: Some views (must search views) were always empty when added to a dashboard
Level: 1
Component: multisite
Class: fix
Compatible: compat
Edition: cre
State: unknown
Version: 1.7.0i1
Date: 1568209012

When viewing a "search only" aka "must search view", like the host and service search
views and adding it as dashlet to a dashboard, the current search context was taken
over into the dashlet, but the view always displayed an empty list of hosts or services.
1 change: 1 addition & 0 deletions cmk/gui/dashboard.py
Expand Up @@ -592,6 +592,7 @@ def load_view_into_dashlet(dashlet, nr, view_name, add_context=None, load_from_a
dashlet['type'] = 'view'
dashlet['name'] = 'dashlet_%d' % nr
dashlet['show_title'] = True
dashlet['mustsearch'] = False


def save_dashboards(us):
Expand Down

0 comments on commit 6e1625c

Please sign in to comment.