Skip to content
Snippets Groups Projects
Commit 396235ed authored by Sebastian Pongratz's avatar Sebastian Pongratz :ping_pong:
Browse files

[Projekt: xRM-ContactManagement][TicketNr.: 2001327][Queries werden gegen...

[Projekt: xRM-ContactManagement][TicketNr.: 2001327][Queries werden gegen nicht existierendes Feld CONTACT.CONTACT_ID generiert]
parent eddc1763
No related branches found
No related tags found
No related merge requests found
......@@ -2,14 +2,14 @@ import("system.vars");
import("Sql_lib");
import("system.result");
result.string(newWhere("CONTACT.CONTACT_ID",
result.string(newWhere("CONTACT.CONTACTID",
newSelect("CAMPAIGNPARTICIPANT.CONTACT_ID")
.from("CAMPAIGN")
.join("CAMPAIGNPARTICIPANT",
newWhere("CAMPAIGN.CAMPAIGNID = CAMPAIGNPARTICIPANT.CAMPAIGN_ID"))
.whereIfSet(vars.get("$local.condition")),
SqlBuilder.IN())
.orIfSet("CONTACT.CONTACT_ID",
.orIfSet("CONTACT.CONTACTID",
newSelect("CAMPAIGN.EMPLOYEE_CONTACT_ID")
.from("CAMPAIGN")
.whereIfSet(vars.get("$local.condition")),
......
......@@ -2,13 +2,12 @@ import("system.vars");
import("Sql_lib");
import("system.result");
result.string(newWhere("CONTACT.CONTACT_ID",
result.string(newWhere("CONTACT.CONTACTID",
newSelect("TASK.REQUESTOR_CONTACT_ID")
.from("TASK")
.whereIfSet(vars.get("$local.condition")),
SqlBuilder.IN())
.orIfSet("CONTACT.CONTACT_ID",
.orIfSet("CONTACT.CONTACTID",
newSelect("TASK.EDITOR_CONTACT_ID")
.from("TASK")
.whereIfSet(vars.get("$local.condition")),
......
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