Skip to content
Snippets Groups Projects
Commit 485aae2d authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

fix person: organisation contact id

parent 86b5a400
No related branches found
No related tags found
No related merge requests found
......@@ -1158,6 +1158,14 @@ Usually this is used for filtering COMMUNICATION-entries by a specified contact
<name>OrganisationContactId.value</name>
<expression>%aditoprj%/entity/Person_entity/recordcontainers/db/recordfieldmappings/organisationcontactid.value/expression.js</expression>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>ORGANISATION_CONTACTID.displayValue</name>
<recordfield>ORGANISATION.NAME</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>ORGANISATION_CONTACTID.value</name>
<expression>%aditoprj%/entity/Person_entity/recordcontainers/db/recordfieldmappings/organisation_contactid.value/expression.js</expression>
</dbRecordFieldMapping>
</recordFieldMappings>
<filterExtensions>
<filterExtensionSet>
......
......@@ -10,8 +10,4 @@ if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW && vars.get("$this.v
{
result.string(ContactUtils.getOrgContactId(vars.get("$param.OrgId_param")));
}
}
else if (vars.get("$this.value") == null)
{ // V--- Prevent cyclic dependencies.
result.string(ContactUtils.getOrgContactId(vars.get("$field." + "ORGANISATION_ID")));
}
\ No newline at end of file
import("system.result");
result.string("select CONTACT.CONTACTID from CONTACT where CONTACT.ORGANISATION_ID = ORGANISATION.ORGANISATIONID and CONTACT.PERSON_ID is null")
\ 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