Code

Updated Folder Editor,
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 13 Oct 2010 12:09:45 +0000 (12:09 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 13 Oct 2010 12:09:45 +0000 (12:09 +0000)
-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

gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderEditDialog.inc

index 006bd227afff428d6553ce2b1271f9c698359916..ec54aa69cac4b964f3700cc5175dbe8ad17023cf 100644 (file)
@@ -31,8 +31,11 @@ class FolderEditDialog extends plugin
 
         // Prepare folder name and path     
         $smarty->assign('folderName', preg_replace("/\{%cn\}/", "<i>Group name</i>", $this->folderItem['name']));
-        $smarty->assign('folderPath', preg_replace("/\{%cn\}/", "<i>Group name</i>", $this->folderItem['path']));
-        
+        if(isset($this->folderItem['path'])){
+            $smarty->assign('folderPath', preg_replace("/\{%cn\}/", "<i>Group name</i>", $this->folderItem['path']));
+        }else{
+            $smarty->assign('folderPath', '');
+        }
  
         $smarty->assign('folderItem', $this->folderItem);
         $smarty->assign('permissions', $this->permissions);