Code

Updated migration dialog
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 May 2010 11:16:52 +0000 (11:16 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 May 2010 11:16:52 +0000 (11:16 +0000)
-Reload configuration once the last property is saved,

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18511 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index adc81e805f55e61c4158feae9d70fab82880244d..0b2a394d9f8218e4fcf60d4290fa8be99211e956 100644 (file)
@@ -77,6 +77,11 @@ class configViewer extends management
                 $this->toBeMigrated[0]->save();
                 unset($this->toBeMigrated[0]);
                 $this->toBeMigrated = array_values($this->toBeMigrated);
+
+                // Nothing to migrate and everything is fine, reload the list now.
+                if(!count($this->toBeMigrated)){
+                    $this->config->configRegistry->reload($force=TRUE);
+                }
             }
         }
         if(count($this->toBeMigrated)){