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

contact_entity: added workaround for lookup-onvalidation

parent a6edf7e2
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,12 @@ import("Sql_lib");
var personId = vars.get("$field.PERSON_ID");
var organisationId = ProcessHandlingUtils.getOnValidationValue("$field.ORGANISATION_ID");
//workaround for organisationId: $local.value will return the name of the organisation which is not what we want
//but the field already contains the changed value; so let's load the field instead of the $local.value-variable
//this is a bug within the ADITO-kernel
//TODO: change the workaround behaviour when $local.value is retrieved correct
organisationId = vars.get("$field.ORGANISATION_ID")
if (personId && organisationId)
{
var alreadyExistantContactId = db.cell(SqlCondition.begin()
......
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