Skip to content
Snippets Groups Projects
Commit e87e2858 authored by Johannes Goderbauer's avatar Johannes Goderbauer Committed by Johannes Goderbauer
Browse files

[Projekt: Entwicklung - Neon][TicketNr.: 1051679][Falsche Zuweisung in...

[Projekt: Entwicklung - Neon][TicketNr.: 1051679][Falsche Zuweisung in person_entity.db.conditionProcess]

(cherry picked from commit 9c259792)
parent 43ba0da1
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ import("system.result");
import("Sql_lib");
var cond = newWhereIfSet("CONTACT.ORGANISATION_ID", "$param.OrgId_param")
.andIfSet("PERSON.CONTACT_ID", "$param.ContactId_param");
.andIfSet("CONTACT.CONTACTID", "$param.ContactId_param");
if (vars.exists("$param.ExcludedContactIds_param") && vars.get("$param.ExcludedContactIds_param"))
{
......
......@@ -501,7 +501,7 @@ Here is an example code of a conditionProcess:
// newWhereIfSet() is used to create a new condition.
// The 'IfSet' ignores the condition "CONTACT.ORGANISATION_ID" = "$param.OrgId_param" if "$param.OrgId_param" is null
var cond = newWhereIfSet("CONTACT.ORGANISATION_ID", "$param.OrgId_param")
.andIfSet("PERSON.CONTACT_ID", "$param.ContactId_param"); // if "$param.ContactId_param" is null, this line is ignored
.andIfSet("CONTACT.CONTACTID", "$param.ContactId_param"); // if "$param.ContactId_param" is null, this line is ignored
// --> If both parameters are null (not filled), then the SqlBuilder condition will not contain any condition!
// Now we add a parameter containing a json Array
......
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