From 63477e00e0167ec3d97dd612542c9de81c62b77c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harouna=20Traor=C3=A9?= Date: Wed, 11 Oct 2023 15:03:27 +0200 Subject: [PATCH] only one form in form widget relationship --- CHANGELOG.md | 4 ++++ modules/@apostrophecms/form-widget/index.js | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bad76a..c10abc2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ We use the default express connect-multiparty size limits. The rule is checked b This can now be disabled. * Add divider widget (`
` tag) to form widgets. +### Fixes + +* We can now select only one form when editing the form widget relationship to form field ('Form to display'). + ## 1.1.1 (2023-02-17) ### Fixes diff --git a/modules/@apostrophecms/form-widget/index.js b/modules/@apostrophecms/form-widget/index.js index 5a09af4..c199bff 100644 --- a/modules/@apostrophecms/form-widget/index.js +++ b/modules/@apostrophecms/form-widget/index.js @@ -13,7 +13,8 @@ module.exports = { label: 'aposForm:widgetFormSelect', type: 'relationship', withType: '@apostrophecms/form', - required: true + required: true, + max: 1 } } },