Code

Added removal of Device Installation Tab
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 7 Jul 2011 08:25:58 +0000 (08:25 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 7 Jul 2011 08:25:58 +0000 (08:25 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20941 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc

index 12e14731f1c58fb30e53beb969a07fdae82e1a37..af927b4b8be4cddbb15a56e1f70a16fa7d33b700 100644 (file)
@@ -530,7 +530,14 @@ class InstallRecipe extends plugin
     
     function remove_from_parent()
     {
-       print "Missing"; 
+        // Try to remove the base install extension.
+        $rpc = $this->config->getRpcHandle();
+        $bMethod = $rpc->removeBaseInstallParameters($this->deviceUUID);
+        if(!$rpc->success()){
+            $this->rpcErrorMessage = $rpc->get_error();
+            msg_dialog::display(_("Error"), msgPool::rpcError($this->rpcErrorMessage), ERROR_DIALOG);
+            return(NULL);
+        }
     }