From dcd46153991d2c528fe55e2177adb6a15b46090f Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Tue, 1 Nov 2016 02:09:50 +0100 Subject: [PATCH] Fixed small bug: error message if folder is unaccessible [permissions...] --- .idea/workspace.xml | 8 +++----- js/data/Actions.js | 6 +++--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 6488bc3..3a0c8eb 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,9 +1,7 @@ - - - + @@ -421,12 +419,12 @@ - diff --git a/js/data/Actions.js b/js/data/Actions.js index 68d6e5a..33c7fd4 100644 --- a/js/data/Actions.js +++ b/js/data/Actions.js @@ -79,7 +79,7 @@ Zarafa.plugins.calendarimporter.data.Actions = { if (!Ext.isEmpty(inbox.subStores) && inbox.subStores.folders.totalLength > 0) { for (var i = 0; i < inbox.subStores.folders.totalLength; i++) { var folder = inbox.subStores.folders.getAt(i); - if (folder.get("container_class") == "IPF.Appointment") { + if (!Ext.isEmpty(folder) && folder.get("container_class") == "IPF.Appointment") { if (asDropdownStore) { allFolders.push([ folder.get("entryid"), @@ -100,7 +100,7 @@ Zarafa.plugins.calendarimporter.data.Actions = { if (!Ext.isEmpty(pub.subStores) && pub.subStores.folders.totalLength > 0) { for (var j = 0; j < pub.subStores.folders.totalLength; j++) { var folder = pub.subStores.folders.getAt(j); - if (folder.get("container_class") == "IPF.Appointment") { + if (!Ext.isEmpty(folder) && folder.get("container_class") == "IPF.Appointment") { if (asDropdownStore) { allFolders.push([ folder.get("entryid"), @@ -175,4 +175,4 @@ Zarafa.plugins.calendarimporter.data.Actions = { return result * sortOrder; } } -}; \ No newline at end of file +};