From 97b9fb56d252d120c6d3bf28c49975e98a8507c5 Mon Sep 17 00:00:00 2001 From: Daniel Tran <d.tran@adito.de> Date: Tue, 18 Feb 2020 10:57:06 +0000 Subject: [PATCH] #1047687 - Fixed no selection option in filter view with attribute: "organisation" & "person". --- entity/Offer_entity/Offer_entity.aod | 22 ++++++++++++++++++++++ entity/Order_entity/Order_entity.aod | 18 ++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/entity/Offer_entity/Offer_entity.aod b/entity/Offer_entity/Offer_entity.aod index c8d706ecb62..fa78e12fa9e 100644 --- a/entity/Offer_entity/Offer_entity.aod +++ b/entity/Offer_entity/Offer_entity.aod @@ -225,11 +225,13 @@ <entityField> <name>CONTACT_ORG_ID</name> <title>Company</title> + <consumer>Organisations</consumer> <stateProcess>%aditoprj%/entity/Offer_entity/entityfields/contact_org_id/stateProcess.js</stateProcess> </entityField> <entityField> <name>CONTACT_PERSON_ID</name> <title>Person</title> + <consumer>Persons</consumer> <stateProcess>%aditoprj%/entity/Offer_entity/entityfields/contact_person_id/stateProcess.js</stateProcess> </entityField> <entityConsumer> @@ -964,6 +966,22 @@ <iconId>VAADIN:PLAY</iconId> <stateProcess>%aditoprj%/entity/Offer_entity/entityfields/startworkflow/stateProcess.js</stateProcess> </entityActionField> + <entityConsumer> + <name>Organisations</name> + <dependency> + <name>dependency</name> + <entityName>Organisation_entity</entityName> + <fieldName>Organisations</fieldName> + </dependency> + </entityConsumer> + <entityConsumer> + <name>Persons</name> + <dependency> + <name>dependency</name> + <entityName>Person_entity</entityName> + <fieldName>Contact</fieldName> + </dependency> + </entityConsumer> </entityFields> <recordContainers> <dbRecordContainer> @@ -1073,10 +1091,14 @@ <dbRecordFieldMapping> <name>CONTACT_ORG_ID.value</name> <recordfield>CONTACT.ORGANISATION_ID</recordfield> + <isFilterable v="true" /> + <isLookupFilter v="false" /> </dbRecordFieldMapping> <dbRecordFieldMapping> <name>CONTACT_PERSON_ID.value</name> <recordfield>CONTACT.PERSON_ID</recordfield> + <isFilterable v="true" /> + <isLookupFilter v="false" /> </dbRecordFieldMapping> <dbRecordFieldMapping> <name>ADDRESS.value</name> diff --git a/entity/Order_entity/Order_entity.aod b/entity/Order_entity/Order_entity.aod index 75f68bd5910..a6b28c020c5 100644 --- a/entity/Order_entity/Order_entity.aod +++ b/entity/Order_entity/Order_entity.aod @@ -188,10 +188,12 @@ <entityField> <name>CONTACT_ORG_ID</name> <title>Company</title> + <consumer>Organisations</consumer> </entityField> <entityField> <name>CONTACT_PERSON_ID</name> <title>Person</title> + <consumer>Persons</consumer> </entityField> <entityConsumer> <name>AnyContacts</name> @@ -950,6 +952,22 @@ <iconId>VAADIN:CURLY_BRACKETS</iconId> <stateProcess>%aditoprj%/entity/Order_entity/entityfields/openadminview/stateProcess.js</stateProcess> </entityActionField> + <entityConsumer> + <name>Organisations</name> + <dependency> + <name>dependency</name> + <entityName>Organisation_entity</entityName> + <fieldName>Organisations</fieldName> + </dependency> + </entityConsumer> + <entityConsumer> + <name>Persons</name> + <dependency> + <name>dependency</name> + <entityName>Person_entity</entityName> + <fieldName>Contacts</fieldName> + </dependency> + </entityConsumer> </entityFields> <recordContainers> <dbRecordContainer> -- GitLab