Skip to content
Snippets Groups Projects
Commit f0d28cac authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon: Committed by Johannes Goderbauer
Browse files

[Projekt: Entwicklung - Neon][TicketNr.: 1064714][SQL-Query der Indexgruppe...

[Projekt: Entwicklung - Neon][TicketNr.: 1064714][SQL-Query der Indexgruppe Person wird falsch zusammengebaut]
parent 8956fdf1
No related branches found
No related tags found
No related merge requests found
......@@ -49,9 +49,11 @@ var querySelect = newSelect([
.leftJoin("COMMUNICATION", newWhere("phone.CONTACT_ID = CONTACT.CONTACTID")
.and(["COMMUNICATION", "MEDIUM_ID", "phone"], commMediumPhoneIds, SqlBuilder.IN()), "phone")
.where("CONTACT.STATUS", $KeywordRegistry.contactStatus$inactive(), SqlBuilder.NOT_EQUAL())
.orderBy("CONTACT.CONTACTID");
if (vars.exists("$local.idvalue"))
querySelect.whereIfSet("CONTACT.CONTACTID", "$local.idvalue");
querySelect.andIfSet("CONTACT.CONTACTID", "$local.idvalue");
querySelect = querySelect.orderBy("CONTACT.CONTACTID");
result.string(querySelect);
\ No newline at end of file
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