Skip to content
Snippets Groups Projects
Commit f2be0868 authored by Christoph Manhart's avatar Christoph Manhart
Browse files

[Projekt: xRM-ContactManagement][TicketNr.: 1078468][IncomingEmailExecutor...

[Projekt: xRM-ContactManagement][TicketNr.: 1078468][IncomingEmailExecutor verknüpft beliebigen Kontakt]
parent 53aa7981
No related branches found
No related tags found
No related merge requests found
......@@ -153,11 +153,13 @@ IncomingEmailExecutor.prototype.isUnlinkable = function ()
IncomingEmailExecutor.getContactDataByEmail = function (pMailAddress, pAlias)
{
var mailAddress = EmailUtils.extractAddress(pMailAddress).toUpperCase();
return newSelect("CONTACT.CONTACTID, CONTACT.STATUS, CONTACT.PERSON_ID, CONTACT.ISOLANGUAGE", pAlias)
.from("COMMUNICATION")
.join("CONTACT", "COMMUNICATION.CONTACT_ID = CONTACT.CONTACTID")
.where("COMMUNICATION.ADDR", mailAddress, "upper(#) = ?")
.table();
return mailAddress
? newSelect("CONTACT.CONTACTID, CONTACT.STATUS, CONTACT.PERSON_ID, CONTACT.ISOLANGUAGE", pAlias)
.from("COMMUNICATION")
.join("CONTACT", "COMMUNICATION.CONTACT_ID = CONTACT.CONTACTID")
.where("COMMUNICATION.ADDR", mailAddress, "upper(#) = ?")
.table()
: [];
}
IncomingEmailExecutor.prototype.createActivity = function(pAdditionalLinks)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment