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

fix object relation filtering

parent 5b9e2c51
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,12 @@
<entityName>Organisation_entity</entityName>
<fieldName>#PROVIDER</fieldName>
</dependency>
<children>
<entityParameter>
<name>ExcludedContactIds_param</name>
<valueProcess>%aditoprj%/entity/Object_entity/entityfields/organisations/children/excludedcontactids_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
<entityConsumer>
<name>Persons</name>
......@@ -76,6 +82,12 @@
<entityName>Person_entity</entityName>
<fieldName>#PROVIDER</fieldName>
</dependency>
<children>
<entityParameter>
<name>ExcludedContactIds_param</name>
<valueProcess>%aditoprj%/entity/Object_entity/entityfields/persons/children/excludedcontactids_param/valueProcess.js</valueProcess>
</entityParameter>
</children>
</entityConsumer>
<entityConsumer>
<name>Offers</name>
......
import("system.vars");
import("system.result");
if (vars.exists("$param.ExcludedObjectIds_param") && vars.get("$param.ExcludedObjectIds_param"))
{
result.string(vars.get("$param.ExcludedObjectIds_param"))
}
\ No newline at end of file
import("system.vars");
import("system.result");
if (vars.exists("$param.ExcludedObjectIds_param") && vars.get("$param.ExcludedObjectIds_param"))
{
result.string(vars.get("$param.ExcludedObjectIds_param"))
}
\ No newline at end of file
......@@ -4,6 +4,9 @@ import("system.result");
import("Context_lib");
// NOTE THAT THIS ENTITY USES THE TARGET_CONSUMER_PROCESSES OF THE PROVIDERS
// --> THIS PROCESS WON'T NOT BE EXECUTED IN SOME CASES.
if (vars.exists("$param.ObjectType_param") && vars.get("$param.ObjectType_param"))
{
var excludedIds = [];
......
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