Code

Updated configViewer
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 12 May 2010 15:31:18 +0000 (15:31 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 12 May 2010 15:31:18 +0000 (15:31 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18398 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/addons/configViewer/class_configViewer.inc

index 7ec012f79159d41f590c2a6a359842ef245cf294..2532c3e9b872d4004afd6644ae62e368954337b6 100644 (file)
@@ -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);
+            }
         }
     }