From d9250e23574e59571a8ece8e1d5e26ed2fdf9e98 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 12 May 2010 15:31:18 +0000 Subject: [PATCH] Updated configViewer git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18398 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../addons/configViewer/class_configViewer.inc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gosa-core/plugins/addons/configViewer/class_configViewer.inc b/gosa-core/plugins/addons/configViewer/class_configViewer.inc index 7ec012f79..2532c3e9b 100644 --- a/gosa-core/plugins/addons/configViewer/class_configViewer.inc +++ b/gosa-core/plugins/addons/configViewer/class_configViewer.inc @@ -64,7 +64,6 @@ class configViewer extends management // Execute registered management event listeners. $this->handleActions($this->detectPostActions()); - // Handle properties that have to be migrated if(isset($_POST['propertyMigrate_cancel']) && count($this->toBeMigrated)){ unset($this->toBeMigrated[0]); @@ -93,6 +92,11 @@ class configViewer extends management $first = $this->toBeMigrated[0]->getMigrationClass(); }else{ $first = NULL; + + // Nothing to migrate and everything is fine, reload the list now. + if(!count($this->toBeMigrated)){ + $this->config->configRegistry->reload($force=TRUE); + } } } @@ -140,6 +144,11 @@ class configViewer extends management // Now save the properties. if($valid){ $this->toBeMigrated = $this->config->configRegistry->saveChanges(); + + // Nothing to migrate and everything is fine, reload the list now. + if(!count($this->toBeMigrated)){ + $this->config->configRegistry->reload($force=TRUE); + } } } -- 2.30.2