From e09f8ea22c266abb967aa77a52c097f6b23c3eb4 Mon Sep 17 00:00:00 2001 From: Mikesch-mp Date: Sat, 22 Apr 2017 08:32:28 +0200 Subject: [PATCH] Fix multiple panels --- library/Grafana/ProvidedHook/Grapher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Grafana/ProvidedHook/Grapher.php b/library/Grafana/ProvidedHook/Grapher.php index ff72142..6f21ef6 100644 --- a/library/Grafana/ProvidedHook/Grapher.php +++ b/library/Grafana/ProvidedHook/Grapher.php @@ -278,10 +278,10 @@ public function getPreviewHtml(MonitoredObject $object) } $menu = substr($menu, 0, -3); $menu .= ''; - $html = ""; foreach(explode(',' , $this->panelId) as $panelid) { + $html = ""; $this->panelId = $panelid; if ($this->enableLink == "no")