summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b153aa4)
raw | patch | inline | side by side (parent: b153aa4)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 14 Oct 2010 08:49:13 +0000 (08:49 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 14 Oct 2010 08:49:13 +0000 (08:49 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20042 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc | patch | blob | history | |
gosa-plugins/groupware/personal/groupware/class_Groupware.inc | patch | blob | history |
diff --git a/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc b/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc
index fc409dd867ef013bbbf7f9eedb4ef5cbd709b842..5b4d965ea43cefb584b4e279adbc28a0a15f9920 100644 (file)
$this->buildRecursiveList($arr, $this->pathSeparator);
// Ensure that we've at least the base folder set
- if(!isset($this->folderList[$this->accountPrefix])){
+ if(!isset($this->folderList['linear'][$this->accountPrefix])){
$this->addPath($this->accountPrefix, preg_replace("/^.*\//","", $this->accountPrefix));
trigger_error(sprintf("You reuquire at least a folder named '%s'! This time it was added automatically.",
diff --git a/gosa-plugins/groupware/personal/groupware/class_Groupware.inc b/gosa-plugins/groupware/personal/groupware/class_Groupware.inc
index d40449a9b4ac2982a4f3240ba48e2102b8ce1723..56422ba679ccf0d15e5637358b53b3bd768a485d 100644 (file)
}
}
if(isset($_POST['configureFolder'])){
- $this->FolderWidget = new FolderWidget($this->config,$this->mailFolder, $this->folderPrefix);
+ $folders = $this->mailFolder;
+ if(!isset($folders[$this->folderPrefix])){
+ $folders[$this->folderPrefix] = array('name' => $this->uid,'status' => 'added','acls' => array());
+ }
+
+ $this->FolderWidget = new FolderWidget($this->config,$folders, $this->folderPrefix);
$this->FolderWidget->setPermissions(GroupwareDefinitions::getPermissions());
$this->FolderWidget->acl_base = $this->acl_base;
$this->FolderWidget->acl_category = $this->acl_category;