From aacf6018c72191436fecc0c4b286b9b7d4c69438 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 22 Jun 2005 07:27:22 +0000 Subject: [PATCH] dynamic/Network will be saved as thought git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@794 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_phoneGeneric.inc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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'){ -- 2.30.2