From 71cd2f38731b2a87d97e62de181549c8c62df629 Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Thu, 17 Apr 2025 12:03:17 +0200 Subject: [PATCH 1/3] Allow empty value in `RadioButtonFormField` --- .../templates/shared_radioButtonFormField.tpl | 13 +++++++++++++ .../builder/field/RadioButtonFormField.class.php | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/com.woltlab.wcf/templates/shared_radioButtonFormField.tpl b/com.woltlab.wcf/templates/shared_radioButtonFormField.tpl index 1d2add11ff7..9c4d4ab593b 100644 --- a/com.woltlab.wcf/templates/shared_radioButtonFormField.tpl +++ b/com.woltlab.wcf/templates/shared_radioButtonFormField.tpl @@ -1,3 +1,16 @@ +{if !$field->isRequired()} + +{/if} {foreach from=$field->getOptions() key=$__fieldValue item=__fieldLabel}