Applied patch from jira issue - OFBIZ-7851 - Clean up commented out code in Java source for Marketing.

Thanks Harsh for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1757996 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ashish Vijaywargiya
2016-08-27 11:44:11 +00:00
parent f2961c1793
commit eac9ea033d
2 changed files with 1 additions and 22 deletions
@@ -444,9 +444,6 @@ public class TrackingCodeEvents {
if (cookies != null && cookies.length > 0) {
for (int i = 0; i < cookies.length; i++) {
String cookieName = cookies[i].getName();
//Debug.logInfo(" cookieName is " + cookieName, module);
//Debug.logInfo(" cookieValue is " + cookies[i].getValue(), module);
// find the siteId cookie if it exists
if ("Ofbiz.TKCD.SiteId".equals(cookieName)) {
siteId = cookies[i].getValue();
@@ -192,25 +192,7 @@ public class VCard {
serviceCtx.put("contactNumber", phoneAddr.substring(indexLocal));
}
/* TODO improve this part to manage party organization
Organization organization = vcard.getOrganization();
// Useful when creating a contact with more than OOTB
if (!isGroup && organization != null && oid.getTitle() != null) {
String personalTitle = organization..getTitle().replace("\\","").replaceAll("\uFFFD", " ");
if (personalTitle.length() > 100) {
personalTitle = oid.getTitle().replace("\\", "").replaceAll("\uFFFD", " ").substring(0, 100);
}
serviceCtx.put("personalTitle", personalTitle);
}
// Needed when creating an account (a PartyGroup)
if (isGroup) {
//serviceCtx.put("partyRole", oid.getRole()); // not used yet,maybe useful later
if (oid.hasOrganization()) {
Organization org = oid.getOrganization();
serviceCtx.put("groupName", org.getName().replace("\\", ""));
}
}*/
/* TODO improve this part to manage party organization */
GenericValue userLogin = (GenericValue) context.get("userLogin");
serviceCtx.put("userLogin", userLogin);