From b005df68a2880733d8b47df4ab2c4fcf1d9b0701 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 17 Feb 2016 10:17:23 +0100 Subject: [PATCH] Fix that user dashboards are always deleted on add/update fixes #11136 --- library/Icinga/Legacy/DashboardConfig.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/Icinga/Legacy/DashboardConfig.php b/library/Icinga/Legacy/DashboardConfig.php index 08b564602..54cd3b78f 100644 --- a/library/Icinga/Legacy/DashboardConfig.php +++ b/library/Icinga/Legacy/DashboardConfig.php @@ -77,6 +77,9 @@ class DashboardConfig extends Config public function saveIni($filePath = null, $fileMode = 0660) { parent::saveIni($filePath, $fileMode); + if ($filePath === null) { + $filePath = $this->configFile; + } foreach (static::listConfigFilesForUser($this->user) as $file) { if ($file !== $filePath) { @unlink($file);