From 90ec79834b1e068f8922658867e8ab28e244862f Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 26 May 2015 14:29:30 +0000 Subject: [PATCH] Fix 'Cannot read property...' error when adding an event via context menu --- addressbook/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addressbook/js/app.js b/addressbook/js/app.js index a480742ae3..dbe859e9e0 100644 --- a/addressbook/js/app.js +++ b/addressbook/js/app.js @@ -232,7 +232,7 @@ app.classes.addressbook = AppJS.extend( ids += "c" + id[1] + ((i < _senders.length - 1) ? "," : ""); } var extra = {}; - extra[_action.data.url.indexOf('owner') > 0 ? 'owner' : 'participants'] = ids; + extra[_action.data && _action.data.url && _action.data.url.indexOf('owner') > 0 ? 'owner' : 'participants'] = ids; // Use framework to add calendar entry egw.open('','calendar','add',extra);