From d94bc5c4a38541b956fa103aff6d90a4658ad9e9 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 13 Oct 2010 12:09:45 +0000 Subject: [PATCH] Updated Folder Editor, -we do not have a valid folder path while creating it! git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20031 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../groupware/FolderWidget/class_FolderEditDialog.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderEditDialog.inc b/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderEditDialog.inc index 006bd227a..ec54aa69c 100644 --- a/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderEditDialog.inc +++ b/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderEditDialog.inc @@ -31,8 +31,11 @@ class FolderEditDialog extends plugin // Prepare folder name and path $smarty->assign('folderName', preg_replace("/\{%cn\}/", "Group name", $this->folderItem['name'])); - $smarty->assign('folderPath', preg_replace("/\{%cn\}/", "Group name", $this->folderItem['path'])); - + if(isset($this->folderItem['path'])){ + $smarty->assign('folderPath', preg_replace("/\{%cn\}/", "Group name", $this->folderItem['path'])); + }else{ + $smarty->assign('folderPath', ''); + } $smarty->assign('folderItem', $this->folderItem); $smarty->assign('permissions', $this->permissions); -- 2.30.2