From 4f52da95ace58479f9a55aeff412a6c8a21eebe0 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 2 Oct 2014 16:35:41 +0200 Subject: [PATCH] Drop page data when skipping a page that was displayed before refs #7163 --- library/Icinga/Application/WebSetup.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/Icinga/Application/WebSetup.php b/library/Icinga/Application/WebSetup.php index 82a9c59c9..050b201f6 100644 --- a/library/Icinga/Application/WebSetup.php +++ b/library/Icinga/Application/WebSetup.php @@ -143,6 +143,11 @@ class WebSetup extends Wizard implements SetupWizard } if ($skip) { + if ($this->hasPageData($newPage->getName())) { + $pageData = & $this->getPageData(); + unset($pageData[$newPage->getName()]); + } + $pages = $this->getPages(); if ($this->getDirection() === static::FORWARD) { $nextPage = $pages[array_search($newPage, $pages, true) + 1];