Code

Save Arp-GOto dhcp and dns settings.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 7 Jul 2009 13:51:55 +0000 (13:51 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 7 Jul 2009 13:51:55 +0000 (13:51 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13906 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/systems/admin/systems/class_systemManagement.inc
gosa-plugins/systems/admin/systems/class_termDNS.inc

index f177d3ae3f8589307c8756e28fd10a48eb9d5ab1..51e8ba4249a8f8942c64835ebea173b6bb234189 100644 (file)
@@ -317,7 +317,10 @@ class systems extends plugin
          the target system opened to allow to edit the objects attributes.
      */
     
-    if($this->systab instanceOf ArpNewDeviceTabs && isset($_POST['edit_finish'])){
+    if($this->systab instanceOf ArpNewDeviceTabs && 
+       isset($_POST['edit_finish']) && 
+       $this->systab->by_object['ArpNewDevice']->gotoIntegration ){
+      
 
       /* Check tabs, will feed message array */
       $message = $this->systab->check();
@@ -325,6 +328,7 @@ class systems extends plugin
         msg_dialog::displayChecks($message);
       }else{
         $s_action = "SelectedSystemType";
+        $this->systab->save();
         $this->systab = null;
         unset($_POST['edit_finish']);
       }
index d904a976f6de9531558b4b53283037a894eccbfe..410b34b3d4fafa40ac0275acc4ac9f480e706278 100644 (file)
@@ -332,7 +332,7 @@ class termDNS extends plugin
       $this->dialog = FALSE; 
     }
 
-    if(isset($_POST['save_dhcp']) && $this->acl_is_writeable("dhcpSetup")){
+    if(isset($_POST['save_dhcp']) && $this->acl_is_writeable("dhcpSetup") && is_object($this->dialog)){
       $this->dialog->save_object();
       $msgs = $this->dialog->check(array());
       if(count($msgs)){
@@ -541,11 +541,15 @@ class termDNS extends plugin
         DNS posts
        ******/
 
-      /* Check if DNS should be enabled / disabled */
-      if($this->DNS_is_account && $this->acl_is_writeable("dnsSetup") && !isset($_POST['DNS_is_account'])){
-        $this->DNS_is_account = false;
-      }elseif(!$this->DNS_is_account && $this->acl_is_writeable("dnsSetup") && isset($_POST['DNS_is_account'])){
-        $this->DNS_is_account = true;
+      /* Check if DNS should be enabled / disabled 
+       *  -skip this, if the dns account is enforced.
+       */
+      if(!$this->hide_dns_check_box){
+        if($this->DNS_is_account && $this->acl_is_writeable("dnsSetup") && !isset($_POST['DNS_is_account'])){
+          $this->DNS_is_account = false;
+        }elseif(!$this->DNS_is_account && $this->acl_is_writeable("dnsSetup") && isset($_POST['DNS_is_account'])){
+          $this->DNS_is_account = true;
+        }
       }
 
       /* Get dns attributes */