From cf240e04768f2cb1b8ee3f7b2388bbb573648c78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81bastien=20De=CC=81le=CC=80ze?= Date: Mon, 9 Nov 2020 16:38:07 +0100 Subject: [PATCH] documents: fix contributions in editor. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fixes hide expression for `identifiedBy` field in contributions by checking the right model. Co-Authored-by: Sébastien Délèze --- .../jsonschemas/documents/document-v1.0.0_src.json | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sonar/modules/documents/jsonschemas/documents/document-v1.0.0_src.json b/sonar/modules/documents/jsonschemas/documents/document-v1.0.0_src.json index 22264e99..705342be 100644 --- a/sonar/modules/documents/jsonschemas/documents/document-v1.0.0_src.json +++ b/sonar/modules/documents/jsonschemas/documents/document-v1.0.0_src.json @@ -1196,13 +1196,8 @@ "minLength": 1 } }, - "required": [ - "type", - "source", - "value" - ], "form": { - "hideExpression": "field.model.type !== 'bf:Person'" + "hideExpression": "field.parent.model.type !== 'bf:Person'" } }, "date_of_birth": {