From 2560320cfe32fe06ba644581dc33e647e65057ae Mon Sep 17 00:00:00 2001 From: nathangray Date: Fri, 27 May 2016 08:55:18 -0600 Subject: [PATCH] Check to make sure data is there before accessing it, hopefully avoids a js error blocking context menu. --- addressbook/js/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addressbook/js/app.js b/addressbook/js/app.js index a510fb7966..cc4c95040c 100644 --- a/addressbook/js/app.js +++ b/addressbook/js/app.js @@ -951,6 +951,10 @@ app.classes.addressbook = AppJS.extend( return false; } var content = egw.dataGetUIDdata(_selected[0].id); + + // Selected, but data not found + if(!content || typeof content.data === 'undefined') return false; + var type = _action.id === 'business'?'one':'two'; var addrs = [ content.data['adr_'+type+'_street'],