summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6e02c99)
raw | patch | inline | side by side (parent: 6e02c99)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 3 Nov 2010 10:12:33 +0000 (10:12 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 3 Nov 2010 10:12:33 +0000 (10:12 +0000) |
-Show folder editor directly, since we nothing else to mdoify in this template right now.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20177 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20177 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/groupware/admin/groups/GroupwareSharedFolder/class_GroupwareSharedFolder.inc | patch | blob | history |
diff --git a/gosa-plugins/groupware/admin/groups/GroupwareSharedFolder/class_GroupwareSharedFolder.inc b/gosa-plugins/groupware/admin/groups/GroupwareSharedFolder/class_GroupwareSharedFolder.inc
index a82a9e63733101d6c5d24587b1a50a7412b89230..4de0a56b842b22e794cae62583ee987ef2501b13 100644 (file)
Folder editor
****************/
- if(isset($_POST['FolderWidget_cancel'])) $this->FolderWidget = NULL;
- if(isset($_POST['FolderWidget_ok'])){
- $this->FolderWidget->save_object();
- $msgs = $this->FolderWidget->check();
- if(count($msgs)){
- msg_dialog::displayChecks($msgs);
- }else{
- $this->folderList = $this->FolderWidget->save();
- $this->FolderWidget = NULL;
- }
- }
- if(isset($_POST['configureFolder'])){
+
+ if(!$this->FolderWidget){
$this->FolderWidget = new FolderWidget($this->config,$this->folderList, $this->folderPrefix);
$this->FolderWidget->setPermissions(GroupwareDefinitions::getPermissions());
$this->FolderWidget->acl_base = $this->acl_base;
$this->FolderWidget->acl_category = $this->acl_category;
+ $this->FolderWidget->showButtons(FALSE);
}
- $this->dialog = FALSE;
- if($this->FolderWidget instanceOf FolderWidget){
- $this->FolderWidget->save_object();
- $this->dialog = TRUE;
- return($this->FolderWidget->execute());
- }
-
+ $this->dialog = $this->FolderWidget->dialogOpened();
+ $this->folderList = $this->FolderWidget->save();
+ return($this->FolderWidget->execute());
+
+
+# ONCE WE HAVE MORE FEATURE THAN JUST THE FOLDER SETTINGS,
+# ENABLE THIS AGAIN AN REMOVE THE ABOVE LINES.
+#
+# if(isset($_POST['FolderWidget_cancel'])) $this->FolderWidget = NULL;
+# if(isset($_POST['FolderWidget_ok'])){
+# $this->FolderWidget->save_object();
+# $msgs = $this->FolderWidget->check();
+# if(count($msgs)){
+# msg_dialog::displayChecks($msgs);
+# }else{
+# $this->folderList = $this->FolderWidget->save();
+# $this->FolderWidget = NULL;
+# }
+# }
+# if(isset($_POST['configureFolder'])){
+# $this->FolderWidget = new FolderWidget($this->config,$this->folderList, $this->folderPrefix);
+# $this->FolderWidget->setPermissions(GroupwareDefinitions::getPermissions());
+# $this->FolderWidget->acl_base = $this->acl_base;
+# $this->FolderWidget->acl_category = $this->acl_category;
+# }
+# $this->dialog = FALSE;
+# if($this->FolderWidget instanceOf FolderWidget){
+# $this->FolderWidget->save_object();
+# $this->dialog = TRUE;
+# return($this->FolderWidget->execute());
+# }
+#
/****************
Generate HTML output
if(isset($_POST['GroupwareSharedFolder_posted'])){
plugin::save_object();
}
+ $this->FolderWidget->save_object();
}
*/
function save()
{
+ $this->folderList = $this->FolderWidget->save();
$rpc = $this->config->getRpcHandle();
// Walk through folders and perform requested actions
$this->orig_cn);
}
+ // Merge Folder messages.
+ $messages = array_merge($messages,$this->FolderWidget->check());
+
return($messages);
}