Improved namespace roots handling

This commit is contained in:
Aleksander Machniak (Kolab Systems) 2011-06-17 10:04:00 +02:00
parent 9e93cd9613
commit 2f22542893

View file

@ -163,6 +163,10 @@ class kolab_folders extends rcube_plugin
*/
function folder_form($args)
{
if ($args['options']['is_root']) {
return $args;
}
if (!$this->metadata_support()) {
return $args;
}
@ -218,8 +222,8 @@ class kolab_folders extends rcube_plugin
*/
function folder_save($args)
{
$ctype = trim(get_input_value('_ctype', RCUBE_INPUT_POST));
$subtype = trim(get_input_value('_subtype', RCUBE_INPUT_POST));
$ctype = trim(get_input_value('_ctype', RCUBE_INPUT_POST));
$subtype = trim(get_input_value('_subtype', RCUBE_INPUT_POST));
$mbox = $args['record']['name'];
$old_mbox = $args['record']['oldname'];
$subscribe = $args['record']['subscribe'];