Fix wrong tag of private and business email for addEmail function in addressbook

This commit is contained in:
Hadi Nategh 2014-01-15 08:42:59 +00:00
parent fdbf7505f4
commit c95c10a145

View File

@ -435,8 +435,8 @@ app.classes.addressbook = AppJS.extend(
// Pull data from global cache
var data = egw.dataGetUIDdata(selected[i].id) || {data:{}};
var email_business = data.data[action.parent.children[3].checked ? 'email_business' : ''];
var email = data.data[action.parent.children[4].checked ? 'email' : ''];
var email_business = data.data[action.parent.children[3].checked ? 'email' : ''];
var email = data.data[action.parent.children[4].checked ? 'email_home' : ''];
if(email_business)
{
emails.push(email_business);