From 8c8af9cd508aaf54a66df40b6f1c63249ea558e0 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 1 Oct 2015 17:35:11 +0200 Subject: [PATCH] DashboardPane: Fix that ordering dashlets is persistent --- library/Icinga/Web/Navigation/DashboardPane.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Web/Navigation/DashboardPane.php b/library/Icinga/Web/Navigation/DashboardPane.php index 3bf6d0992..64d844ab7 100644 --- a/library/Icinga/Web/Navigation/DashboardPane.php +++ b/library/Icinga/Web/Navigation/DashboardPane.php @@ -44,7 +44,9 @@ class DashboardPane extends NavigationItem } if ($ordered) { - ksort($this->dashlets); + $dashlets = $this->dashlets; + ksort($dashlets); + return $dashlets; } return $this->dashlets;