We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 205ee60 commit 511f919Copy full SHA for 511f919
source/php/Submission.php
@@ -138,9 +138,14 @@ public function submit()
138
139
140
foreach ($fields as $key => $field) {
141
- if ($field['acf_fc_layout'] == 'checkbox' && is_array($field['values'])) {
+ if (
142
+ $field['acf_fc_layout'] == 'checkbox' &&
143
+ is_array($field['values']) &&
144
+ !empty($_POST[sanitize_title($field['label'])])
145
+ ) {
146
$_POST['ange-vilka-handlingar-du-vill-bestalla'] = implode(",", $_POST[sanitize_title($field['label'])]);
147
}
148
+
149
if ($field['acf_fc_layout'] == 'sender') {
150
if (!empty($field['custom_sender_labels']['add_sender_labels'])) {
151
$labels = array_merge($labels, array_filter($field['custom_sender_labels']));
0 commit comments