Code

Do not updated FAitemplatePath if a new file was uploaded.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Nov 2008 13:52:36 +0000 (13:52 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Nov 2008 13:52:36 +0000 (13:52 +0000)
-

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12895 594d385d-05f5-0310-b6e9-bd551577e9d8

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

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