summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7e05f73)
raw | patch | inline | side by side (parent: 7e05f73)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 16 Oct 2006 08:33:18 +0000 (08:33 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 16 Oct 2006 08:33:18 +0000 (08:33 +0000) |
To avoid objectClass errors
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4883 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4883 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_terminalGeneric.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_terminalGeneric.inc b/plugins/admin/systems/class_terminalGeneric.inc
index de00c606e1187ca758c4f3cbe90280349165db9b..1eab597c17b487ba4b2443f30d7deaf094eb9b5c 100644 (file)
/* Save to LDAP */
function save()
{
+
+ /* Move object if requested */
+ if( $this->orig_dn != 'new' && $this->dn != $this->orig_dn){
+ $this->move($this->orig_dn, $this->dn);
+ }
+
plugin::save();
/* Strip out 'default' values */
$ldap->add($this->attrs);
$this->handle_post_events("add");
} else {
- if ($this->orig_dn != $this->dn){
- $this->move($this->orig_dn, $this->dn);
- }
$ldap->cd($this->dn);
$this->cleanup();
$ldap->modify ($this->attrs);