Code

Updated template upload, fixed tempalte path and file preset
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Nov 2008 09:09:16 +0000 (09:09 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Nov 2008 09:09:16 +0000 (09:09 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12917 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 76b4312b1402f7378c6d83ff144f4b743fd4e0d5..0fea63c2ce83a235be5e6ece026aacf47e79e1f0 100644 (file)
@@ -188,9 +188,10 @@ class faiTemplateEntry extends plugin
       if($this->acl_is_writeable("cn")){
         $cur_path = dirname($cur_path).'/'.get_post('templateFile');
       }
-      if(!isset($_POST['TmpFileUpload'])){
-        $this->FAItemplatePath = $this->cn= $cur_path;
+      if(trim($cur_path,"/") == ""){
+        $cur_path= "";
       }
+      $this->FAItemplatePath = $this->cn= $cur_path;
     }
   }