Code

dynamic/Network will be saved as thought
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Jun 2005 07:27:22 +0000 (07:27 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Jun 2005 07:27:22 +0000 (07:27 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@794 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_phoneGeneric.inc

index 50ac4d3c292ddf4875f51887904c8e19107a2698..dfe1b4e148eeac86d02f257265edd0e753537680 100644 (file)
@@ -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'){