From d7df21d8f496b092138dda12632c4d044a860349 Mon Sep 17 00:00:00 2001 From: Tobias Feldmann <t.feldmann@adito.de> Date: Thu, 1 Aug 2019 16:37:14 +0200 Subject: [PATCH] Bugfix attributes validation --- .../Organisation_entity/entityfields/attributes/onValidation.js | 2 +- entity/Person_entity/entityfields/attributes/onValidation.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/entity/Organisation_entity/entityfields/attributes/onValidation.js b/entity/Organisation_entity/entityfields/attributes/onValidation.js index 508c2b5e94..7fd206a2b4 100644 --- a/entity/Organisation_entity/entityfields/attributes/onValidation.js +++ b/entity/Organisation_entity/entityfields/attributes/onValidation.js @@ -3,4 +3,4 @@ import("system.vars"); import("Attribute_lib"); import("system.result"); -result.string(AttributeRelationUtils.validateAttributeCount(vars.get("$sys.uid"), ContextUtils.getCurrentContextId(), "Attributes")); \ No newline at end of file +result.string(AttributeRelationUtils.validateAttributeCount(vars.get("$field.CONTACTID"), ContextUtils.getCurrentContextId(), "Attributes")); \ No newline at end of file diff --git a/entity/Person_entity/entityfields/attributes/onValidation.js b/entity/Person_entity/entityfields/attributes/onValidation.js index 508c2b5e94..7fd206a2b4 100644 --- a/entity/Person_entity/entityfields/attributes/onValidation.js +++ b/entity/Person_entity/entityfields/attributes/onValidation.js @@ -3,4 +3,4 @@ import("system.vars"); import("Attribute_lib"); import("system.result"); -result.string(AttributeRelationUtils.validateAttributeCount(vars.get("$sys.uid"), ContextUtils.getCurrentContextId(), "Attributes")); \ No newline at end of file +result.string(AttributeRelationUtils.validateAttributeCount(vars.get("$field.CONTACTID"), ContextUtils.getCurrentContextId(), "Attributes")); \ No newline at end of file -- GitLab