mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Check to make sure data is there before accessing it, hopefully avoids a js error blocking context menu.
This commit is contained in:
parent
179d121efa
commit
2560320cfe
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user