From 5703c0de477b5e3b2379d162961359a8e2fc32d6 Mon Sep 17 00:00:00 2001 From: daniel <daniel@localhost> Date: Mon, 3 Feb 2020 14:03:12 +0100 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 c8d706ecb6..6661d521c1 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="true" /> </dbRecordFieldMapping> <dbRecordFieldMapping> <name>ADDRESS.value</name> diff --git a/entity/Order_entity/Order_entity.aod b/entity/Order_entity/Order_entity.aod index bfbbbc2ee1..f92047d0c4 100644 --- a/entity/Order_entity/Order_entity.aod +++ b/entity/Order_entity/Order_entity.aod @@ -189,10 +189,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> @@ -951,6 +953,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