From: hickert Date: Wed, 22 Jun 2005 07:27:22 +0000 (+0000) Subject: dynamic/Network will be saved as thought X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=aacf6018c72191436fecc0c4b286b9b7d4c69438;p=gosa.git dynamic/Network will be saved as thought git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@794 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_phoneGeneric.inc b/plugins/admin/systems/class_phoneGeneric.inc index 50ac4d3c2..dfe1b4e14 100644 --- a/plugins/admin/systems/class_phoneGeneric.inc +++ b/plugins/admin/systems/class_phoneGeneric.inc @@ -85,7 +85,11 @@ class phoneGeneric extends plugin } else { $this->selected_categorie = 0; } - + + if($this->goFonDefaultIP!="dynamic"){ + $this->goFonDefaultIP = "network"; + } + /* Save dn for later references */ $this->orig_dn= $this->dn; } @@ -333,7 +337,11 @@ class phoneGeneric extends plugin } $this->attrs= $attrs; } - + + if($this->goFonDefaultIP!="dynamic"){ + $this->attrs['goFonDefaultIP'] = $this->ipHostNumber; + } + /* Write back to ldap */ $ldap= $this->config->get_ldap_link(); if ($this->orig_dn == 'new'){