From 450cfe4553636179d4f656e4eab0dd8b1af2a913 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 4 Nov 2008 13:52:36 +0000 Subject: [PATCH] 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 --- gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; + } } } -- 2.30.2