From: hickert Date: Tue, 4 Nov 2008 13:52:36 +0000 (+0000) Subject: Do not updated FAitemplatePath if a new file was uploaded. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=450cfe4553636179d4f656e4eab0dd8b1af2a913;p=gosa.git Do not updated FAitemplatePath if a new file was uploaded. - git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12895 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc b/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc index 1dfb7e090..76b4312b1 100644 --- a/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc +++ b/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc @@ -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; + } } }