plugins/libkolab
Thomas Brüderli
bruederli at kolabsys.com
Thu Sep 26 10:21:18 CEST 2013
plugins/libkolab/lib/kolab_storage.php | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit 40ac61ecfb086003fbf793656ce6547f12d64cf0
Author: Thomas Bruederli <bruederli at kolabsys.com>
Date: Thu Sep 26 10:20:25 2013 +0200
Keep active state when renaming a folder (#2268)
diff --git a/plugins/libkolab/lib/kolab_storage.php b/plugins/libkolab/lib/kolab_storage.php
index e5d6438..ebfddcb 100644
--- a/plugins/libkolab/lib/kolab_storage.php
+++ b/plugins/libkolab/lib/kolab_storage.php
@@ -276,9 +276,16 @@ class kolab_storage
{
self::setup();
+ $active = self::folder_is_active($oldname);
$success = self::$imap->rename_folder($oldname, $newname);
self::$last_error = self::$imap->get_error_str();
+ // pass active state to new folder name
+ if ($success && $active) {
+ self::set_state($oldnam, false);
+ self::set_state($newname, true);
+ }
+
return $success;
}
More information about the commits
mailing list