From: hickert Date: Thu, 14 Apr 2011 12:16:30 +0000 (+0000) Subject: Fixed renaming og items X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=91168c1fddecd65fb5db1a931f67335b4b25428d;p=gosa.git Fixed renaming og items git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20730 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/class_ConfigManagementDataModel.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/class_ConfigManagementDataModel.inc index d742056f1..46ccd2886 100644 --- a/gosa-plugins/goto-ng/admin/newConfigManagement/class_ConfigManagementDataModel.inc +++ b/gosa-plugins/goto-ng/admin/newConfigManagement/class_ConfigManagementDataModel.inc @@ -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) diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc index 1d6f9a023..321ef0bb3 100644 --- a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc +++ b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc @@ -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(); } }