summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 90d7644)
raw | patch | inline | side by side (parent: 90d7644)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 26 Jun 2009 13:25:43 +0000 (13:25 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 26 Jun 2009 13:25:43 +0000 (13:25 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13806 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpPlugin.inc | patch | blob | history |
diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpPlugin.inc b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpPlugin.inc
index b4fc0b6c5469b3c1d3fbace8e797e75337edaf82..f0e3f8dc5c3d2eb857c571f2838ba39cfb371722 100644 (file)
/* Used attributes */
var $cn= "";
var $orig_cn= "";
- var $orig_dn= "";
var $options= null;
var $statements= array();
/* Save CN for later reference */
$this->orig_cn= $this->cn;
- $this->orig_dn= $this->dn;
}
function execute()
/* Add cn if we're new */
if ($this->new){
- $this->dn= "cn=".$this->cn.",".$this->orig_dn;
+ $this->dn= "cn=".$this->cn.",".$this->dn;
} else {
- $this->dn= "cn=".$this->cn.preg_replace('/^cn=[^,]+/', '', $this->orig_dn);
+ $this->dn= "cn=".$this->cn.preg_replace('/^cn=[^,]+/', '', $this->dn);
}
- print_a($this);
-
/* Assemble new entry - options */
$this->attrs['dhcpOption']= $this->options->save();