From c95c10a145f7d3ef47bccd536348970c430ff3e9 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 15 Jan 2014 08:42:59 +0000 Subject: [PATCH] Fix wrong tag of private and business email for addEmail function in addressbook --- addressbook/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addressbook/js/app.js b/addressbook/js/app.js index b30a38336e..11015993ae 100644 --- a/addressbook/js/app.js +++ b/addressbook/js/app.js @@ -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);