Code

Save current cn to dns module
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 19 Feb 2008 17:21:25 +0000 (17:21 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 19 Feb 2008 17:21:25 +0000 (17:21 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8971 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/tabs_printers.inc
gosa-plugins/goto/admin/systems/goto/tabs_terminal.inc
gosa-plugins/goto/admin/systems/goto/tabs_workstation.inc

index 739777a7ed8e4a5cb7239023cfdd7e04426ac08b..a6985094e90562ab3f9d6aea05fc698954326a51 100644 (file)
@@ -38,6 +38,10 @@ class printtabs extends tabs
   function save_object($save_current= FALSE)
   {
     tabs::save_object($save_current);
+
+    /* Assign current cn */
+    $baseobject= $this->by_object['printgeneric'];
+    $baseobject->netConfigDNS->cn= $baseobject->cn;
   }
 
 
index ea9207faf4b6433982241105e963f5255d1c3373..9f806acb6d80f91dc5cdc477acbbfe2700afb34a 100644 (file)
@@ -44,6 +44,7 @@ class termtabs extends tabs
     }
     
     $base_obj = $this->by_object['termgeneric'];
+    $baseobject->netConfigDNS->cn= $baseobject->cn;
     foreach($this->by_object as $name => $plug){
       $this->by_object[$name]->cn = $base_obj->cn;
     }
index 3d6bac27c5134dcca4e9f1a8308fcac61a13ef84..d2ca696aa8ac7356847064d2f5cb780991062865 100644 (file)
@@ -41,6 +41,7 @@ class worktabs extends tabs
 
     /* Assign current cn */
     $baseobject= $this->by_object['workgeneric'];
+    $baseobject->netConfigDNS->cn= $baseobject->cn;
     foreach ($this->by_object as $key => $obj){
       $this->by_object[$key]->cn= $baseobject->cn;
     }