From: hickert Date: Wed, 27 Apr 2011 08:05:19 +0000 (+0000) Subject: Fixed renaming of releases X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=52eb479d1d97b863df171908633a770488f7bc54;p=gosa.git Fixed renaming of releases git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20770 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc index 5e2b8b8cb..4ab023fd5 100644 --- a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc +++ b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc @@ -214,7 +214,9 @@ class newConfigManagement extends plugin $rPath = "/root/{$dist['name']}/$rPath"; $rName = preg_replace("/^.*\//","", $rPath); $rPath = preg_replace("/\/[^\/]*$/","", $rPath); - $this->dataModel->addItem('Release',$rPath, $rName, $release); + + $values = array('name' => $rName); + $this->dataModel->addItem('Release',$rPath, $rName, $values); } } } @@ -803,8 +805,9 @@ class newConfigManagement extends plugin msg_dialog::display(_("Error"), sprintf(_("Failed to save release: %s"), $rpc->get_error()),ERROR_DIALOG); return(NULL); }else{ - $this->dataModel->moveItem($item['path'], $item['parentPath'].'/'.$values['name']); - $this->dataModel->setItemValues($item['path'], $values); + $nP = $item['parentPath'].'/'.$values['name']; + $this->dataModel->moveItem($item['path'], $nP); + $this->dataModel->setItemValues($nP, $values); $this->listing->clearDialogObject(); } }