Branch 'roundcubemail-plugins-kolab-3.1' - plugins/libkolab
Thomas Brüderli
bruederli at kolabsys.com
Thu Sep 26 10:21:19 CEST 2013
plugins/libkolab/lib/kolab_storage.php | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit cdb276c83d1c64da54bd0ef40ce2656af478c825
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