From 93c3c524ce48830104e2f349c027cd55d890c0d1 Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Fri, 20 May 2022 16:11:53 +0200 Subject: [PATCH] DashboardEntries: Fix calling to `fromArray` that doesn't exist anymore --- library/Icinga/Web/Dashboard/Common/DashboardEntries.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Web/Dashboard/Common/DashboardEntries.php b/library/Icinga/Web/Dashboard/Common/DashboardEntries.php index bb1a44e0e..6592a3552 100644 --- a/library/Icinga/Web/Dashboard/Common/DashboardEntries.php +++ b/library/Icinga/Web/Dashboard/Common/DashboardEntries.php @@ -52,7 +52,7 @@ trait DashboardEntries public function addEntry(BaseDashboard $dashboard) { if ($this->hasEntry($dashboard->getName())) { - $this->getEntry($dashboard->getName())->fromArray($dashboard->toArray(false)); + $this->getEntry($dashboard->getName())->setProperties($dashboard->toArray(false)); } else { $this->dashboards[$dashboard->getName()] = $dashboard; }