Fix grouped custom fields not saving deselected values #333

This commit is contained in:
witzig 2017-10-05 13:39:53 +02:00
parent 6e3b9d209c
commit 0a369e2475
3 changed files with 13 additions and 3 deletions

View file

@ -130,6 +130,7 @@
{{/if}}
{{#if typeCheckbox}}
<input type="hidden" name="origin_{{key}}" value="webform">
{{#each options}}
<div class="checkbox">
<label>

View file

@ -130,8 +130,9 @@
{{/if}}
{{#if typeCheckbox}}
<div class="form-group checkbox">
<div class="form-group checkbox {{key}}">
<label>{{name}}</label>
<input type="hidden" name="origin_{{key}}" value="webform">
{{#each options}}
<label class="label-checkbox">
<input type="checkbox" name="{{column}}" value="1" {{#if value}} checked {{/if}}> {{name}}