From 532c0ba9872ffd091f48ccdf04fe251a7c418b4c Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 21 Mar 2006 10:33:41 +0000 Subject: [PATCH] Fixed problem creating phones with new dns handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2877 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_phoneGeneric.inc | 2 ++ plugins/admin/systems/class_termDNS.inc | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/plugins/admin/systems/class_phoneGeneric.inc b/plugins/admin/systems/class_phoneGeneric.inc index 863e7c3d9..62322f574 100644 --- a/plugins/admin/systems/class_phoneGeneric.inc +++ b/plugins/admin/systems/class_phoneGeneric.inc @@ -364,6 +364,8 @@ class phoneGeneric extends plugin $this->attrs['goFonDefaultIP'] = $this->netConfigDNS->ipHostNumber; } + $this->attrs = $this->netConfigDNS->getVarsForSaving($this->attrs); + /* Write back to ldap */ $ldap= $this->config->get_ldap_link(); if ($this->orig_dn == 'new'){ diff --git a/plugins/admin/systems/class_termDNS.inc b/plugins/admin/systems/class_termDNS.inc index d7d43acf7..c7e70311d 100644 --- a/plugins/admin/systems/class_termDNS.inc +++ b/plugins/admin/systems/class_termDNS.inc @@ -153,6 +153,16 @@ class termDNS extends plugin $this->DNSinitially_was_account = $this->DNS_is_account; } + function getVarsForSaving($attrs) + { + foreach($this->attributes as $attr){ + if(!empty($this->$attr)){ + $attrs[$attr] = $this->$attr; + } + } + return($attrs); + } + function execute() { /* Call parent execute */ -- 2.30.2