Code

Updated post handling in ARP Goto implementation
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 8 Jul 2009 14:08:16 +0000 (14:08 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 8 Jul 2009 14:08:16 +0000 (14:08 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13913 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 5e1f0c09afa61ed19788074c3abf3a97293d16df..bed0165bbf0434547a6013e434f618934456f436 100644 (file)
@@ -319,18 +319,22 @@ class systems extends plugin
     
     if($this->systab instanceOf ArpNewDeviceTabs && 
        isset($_POST['edit_finish']) && 
-       $this->systab->by_object['ArpNewDevice']->gotoIntegration ){
+       isset($_POST['gotoIntegration'])){
       
+      $this->systab->save_object();
 
-      /* Check tabs, will feed message array */
-      $message = $this->systab->check();
-      if(count($message)){
-        msg_dialog::displayChecks($message);
-      }else{
-        $s_action = "SelectedSystemType";
-        $this->systab->save();
-        $this->systab = null;
-        unset($_POST['edit_finish']);
+      if($this->systab->by_object['ArpNewDevice']->gotoIntegration){
+
+        /* Check tabs, will feed message array */
+        $message = $this->systab->check();
+        if(count($message)){
+          msg_dialog::displayChecks($message);
+        }else{
+          $s_action = "SelectedSystemType";
+          $this->systab->save();
+          $this->systab = null;
+          unset($_POST['edit_finish']);
+        }
       }
     }