From: hickert Date: Wed, 12 May 2010 15:31:18 +0000 (+0000) Subject: Updated configViewer X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d9250e23574e59571a8ece8e1d5e26ed2fdf9e98;p=gosa.git Updated configViewer git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18398 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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); + } } }