From 18bd10bf664b79873d2420cb1d0652d5fe453103 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 25 May 2015 14:27:26 +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);