forked from extern/egroupware
Use getActionById instead of addressing the action through its parent, which is high potential to break the code
This commit is contained in:
parent
4b2dbc6526
commit
f4d4f9600a
@ -435,8 +435,8 @@ app.classes.addressbook = AppJS.extend(
|
|||||||
// Pull data from global cache
|
// Pull data from global cache
|
||||||
var data = egw.dataGetUIDdata(selected[i].id) || {data:{}};
|
var data = egw.dataGetUIDdata(selected[i].id) || {data:{}};
|
||||||
|
|
||||||
var email_business = data.data[action.parent.children[3].checked ? 'email' : ''];
|
var email_business = data.data[action.getManager().getActionById('email_business').checked ? 'email' : ''];
|
||||||
var email = data.data[action.parent.children[4].checked ? 'email_home' : ''];
|
var email = data.data[action.getManager().getActionById('email_home').checked ? 'email_home' : ''];
|
||||||
if(email_business)
|
if(email_business)
|
||||||
{
|
{
|
||||||
emails.push(email_business);
|
emails.push(email_business);
|
||||||
|
Loading…
Reference in New Issue
Block a user