From 372b2d32194b3a8d36dc53f3d9f5fe30a512ea28 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 13 Aug 2008 15:30:32 +0000 Subject: [PATCH] Added additional net property save *before* we call the save hook git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12211 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/goto/class_workstationGeneric.inc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc index abc496724..11623ba1d 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc @@ -590,6 +590,10 @@ class workgeneric extends plugin if (!$ldap->success()){ msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class())); } + + $this->netConfigDNS->cn = $this->cn; + $this->netConfigDNS->save(); + $this->handle_post_events("add",array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber)); } else { if ($this->orig_dn != $this->dn){ @@ -604,6 +608,10 @@ class workgeneric extends plugin msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, LDAP_MOD, get_class())); } new log("modify","workstation/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error()); + + $this->netConfigDNS->cn = $this->cn; + $this->netConfigDNS->save(); + $this->handle_post_events("modify",array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber)); } @@ -612,9 +620,6 @@ class workgeneric extends plugin $this->netConfigDNS->macAddress = "-"; } - $this->netConfigDNS->cn = $this->cn; - $this->netConfigDNS->save(); - if ($activate && class_available("DaemonEvent")){ /* Send installation activation -- 2.30.2