Skip to content
Permalink
Browse files

10037 FIX Some views (must search views) were always empty when added…

… 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 6e1625c1f1589af16341ad0ae9708951cdf8b80c
Showing with 14 additions and 0 deletions.
  1. +13 −0 .werks/10037
  2. +1 −0 cmk/gui/dashboard.py
@@ -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.
@@ -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):

0 comments on commit 6e1625c

Please sign in to comment.
You can’t perform that action at this time.