Browse code

BM-13633 Fix: RC folders map

David Phan authored on 10/10/2018 06:24:08
Showing 1 changed files
... ...
@@ -122,7 +122,12 @@ class MyHierarchy {
122 122
   }
123 123
 
124 124
   private function _loadFolders($mailboxes) {
125
-   return $this->_mailboxfolders()->all();
125
+   $all = $this->_mailboxfolders()->all();
126
+   $folders = array();
127
+   foreach($all as $f) {
128
+     $folders[$f->uid] = $f;
129
+   }
130
+   return $folders;
126 131
   }
127 132
 
128 133
   private function _loadFolder($uid) {