From 228a44e36cb15eca9e5b09f78dbbb9bf352c347f Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 23 Aug 2021 14:56:45 +0200 Subject: [PATCH] Fix form question disappearing --- www/form/inner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/form/inner.js b/www/form/inner.js index ed1d77cdd..973b9e89c 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -2573,7 +2573,7 @@ define([ // Required radio displayed only for types that have an "isEmpty" function var requiredDiv; if (APP.isEditor && !isStatic && data.isEmpty) { - if (!block.opts) { block.opts = {}; } + if (!block.opts) { block.opts = TYPES[type].defaultOpts; } var isRequired = Boolean(block.opts.required); var radioOn = UI.createRadio('cp-form-required-'+uid, 'cp-form-required-on', Messages.form_required_on, isRequired, {