From: hickert Date: Wed, 13 Oct 2010 12:09:45 +0000 (+0000) Subject: Updated Folder Editor, X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d94bc5c4a38541b956fa103aff6d90a4658ad9e9;p=gosa.git 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 --- 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);