Code

Fixed renaming og items
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 14 Apr 2011 12:16:30 +0000 (12:16 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 14 Apr 2011 12:16:30 +0000 (12:16 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20730 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto-ng/admin/newConfigManagement/class_ConfigManagementDataModel.inc
gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc

index d742056f1398894b43f07e564662e1b97985c9b2..46ccd28862233e95355534c5fb21d8e24dd9939e 100644 (file)
@@ -43,6 +43,11 @@ class ConfigManagementDataModel
 
         // Append the linear entry.
         $this->data['linear'][$to] = &$parentTo['children'][$to];
+
+        // Update id->Path mapping
+        $id = $this->data['linear'][$to]['id'];
+        $this->idToPath[$id] = $to;
+
     }
 
     function removeItem($path)
index 1d6f9a02327f3bcb8e1f25666676f8d32e76f63c..321ef0bb35dd218d8b08f741560e785d22b2a630 100644 (file)
@@ -609,6 +609,9 @@ class newConfigManagement extends plugin
                     
                     $this->dataModel->setItemValues($item['path'], $item['values']);
                     $this->dataModel->moveItem($oldPath, $newPath);
+
+                    print_a($this);
+
                     $this->listing->clearDialogObject();
                 }
             }