summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9008e85)
raw | patch | inline | side by side (parent: 9008e85)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 10 May 2010 13:32:48 +0000 (13:32 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 10 May 2010 13:32:48 +0000 (13:32 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18267 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc b/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc
index 037963de6088bed57a04b39341881eeb0f984fd5..81993e1a2e27dc849553b26268feb8de091becd4 100644 (file)
$this->base= dn2base($ui->dn);
}
} else {
- $this->base =preg_replace ("/^[^,]+,".preg_quote(get_ou('deviceRDN'), '/')."/i","",$this->dn);
+ $this->base =preg_replace ("/^[^,]+,".preg_quote(get_ou("deviceGeneric", "deviceRDN") , '/')."/i","",$this->dn);
}
$this->orig_base = $this->base;
$this->orig_dn = $this->dn;
diff --git a/gosa-plugins/goto/admin/devices/class_deviceManagement.inc b/gosa-plugins/goto/admin/devices/class_deviceManagement.inc
index 7ec0081b59cd2ce27ed401237dec1bd7135aea24..606f7b819877abf135a7917282696f879f744638 100644 (file)
$filter_xml = "device-filter.xml";
$list_xml = "device-list.xml";
- $this->storagePoints= array(get_ou("deviceRDN"));
+ $this->storagePoints= array(get_ou("deviceGeneric", "deviceRDN") );
// Build filter
if (session::global_is_set(get_class($this)."_filter")){
diff --git a/gosa-plugins/goto/admin/devices/tabs_devices.inc b/gosa-plugins/goto/admin/devices/tabs_devices.inc
index e2b49799385024dc60971ddce09f271dac46b669..12904f5a78db91f076b5665a9ed86a0ff51958a2 100644 (file)
function save($ignore_account= FALSE)
{
$baseobject= $this->by_object['deviceGeneric'];
- $new_dn= "cn=".$baseobject->cn.",".get_ou('deviceRDN').$baseobject->base;
+ $new_dn= "cn=".$baseobject->cn.",".get_ou("deviceGeneric", "deviceRDN") .$baseobject->base;
/* Move group? */
if ($this->dn != $new_dn){