summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 125a235)
raw | patch | inline | side by side (parent: 125a235)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 12 Jun 2008 11:45:53 +0000 (11:45 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 12 Jun 2008 11:45:53 +0000 (11:45 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11299 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/setup/class_setupStep_Migrate.inc | patch | blob | history |
diff --git a/gosa-core/setup/class_setupStep_Migrate.inc b/gosa-core/setup/class_setupStep_Migrate.inc
index 728906b012ac81fb5f68820ae581e83e2ca0f650..c191ad00b45f0d4e2919f9d0f839c7875ef52526 100644 (file)
}
if(isset($_POST['migrate_menus'])){
- $this->migrate_usb_menus();
+ $this->migrate_menus();
# $this->dialog = FALSE;
# $this->show_details = FALSE;
# $this->menu_dialog = FALSE;
which configured parameter belongs to which application entry.
*/
$amap= array();
+ $toto = array();
$ldap->cd($cv['base']);
$ldap->search("(objectClass=gosaApplication)", array("cn", "gosaApplicationParameter"));
while($info = $ldap->fetch()){
All selected menus will be converted (DETAILS = TRUE).
The ldap actions collected by check_menus() will be executed.
*/
- function migrate_usb_menus()
+ function migrate_menus()
{
/* Establish ldap connection
$success = TRUE;
foreach($menu['TODO']['ADD'] as $dn => $data){
$ldap->cd($cv['base']);
- $base = preg_replace("/^[^,]+,/","",$dn);
if(!$ldap->dn_exists($dn)){
$ldap->cd($dn);
$ldap->add($data);
*/
foreach($menu['TODO']['MODIFY'] as $dn => $data){
$ldap->cd($cv['base']);
- if(!$ldap->dn_exists($dn)){
+ if($ldap->dn_exists($dn)){
$ldap->cd($dn);
$ldap->modify($data);
if (!$ldap->success()){