Code

Added error message
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Apr 2008 15:03:26 +0000 (15:03 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Apr 2008 15:03:26 +0000 (15:03 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10369 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiPackageConfiguration.inc

index 8e25ce4999b21096ca196ec8b1f5bb8207aee579..4e6ebf517e1ec39dcb461a411624741d3d2bf62b 100644 (file)
@@ -21,7 +21,10 @@ class faiPackageConfiguration extends plugin
 
     /* Read pkg debconf info */
     $q = new gosaSupportDaemon();
-    $ret = $q->FAI_get_packages($this->release,array("template"),array($this->obj));
+    $ret = $q->FAI_get_packages($this->release,array("package","template"),array($this->obj));
+    if($q->is_error()){
+      msg_dialog::display(_("Service infrastructure"),msgPool::siError($q->get_error()),ERROR_DIALOG);
+    }
     $tpl = "";
     if(isset($ret['ANSWER1']) && isset($ret['ANSWER1']['TEMPLATE'])){
       $tpl = base64_decode($ret['ANSWER1']['TEMPLATE']);