Code

added migration classes for RDN properties
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 14 May 2010 07:02:38 +0000 (07:02 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 14 May 2010 07:02:38 +0000 (07:02 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18408 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/addons/configViewer/migration/class_migrateRDN.inc

index ce3d1a859519e906064cd42cfd3816943309cfcd..50ace96793c497379edb8fbfc5ef3cfb95a3871e 100644 (file)
@@ -107,19 +107,19 @@ class migrateRDN implements propertyMigration
             $str.= "<br><h3>"._("Objects that will be moved")."</h3>";
             $str.="<pre>";
             foreach($this->found['move'] as $id => $data){
-                $checked = (!isset($_POST['migrateNow'])) ? 'checked':'';
+                $checked = (!isset($_POST["migrateNow".get_class($this)])) ? 'checked':'';
                 $str.= "<input $checked type='checkbox' value='1' name='migrateEntry_{$id}'>";
                 $str.= sprintf(_("Moving object '%s' to '%s'"), $data['from'], $data['to'])."<br>";
             }
             $str.="</pre>";
         }
-        $str.= "<button name='migrateNow'>"._("Migrate")."</button>";
+        $str.= "<button name='migrateNow".get_class($this)."'>"._("Migrate")."</button>";
         return($str);
     }
    
     function save_object()
     {
-        if(isset($_POST['migrateNow'])){
+        if(isset($_POST["migrateNow".get_class($this)])){
             $ldap = $this->config->get_ldap_link();
             $ldap->cd($this->config->current['BASE']);