Skip to content

Commit

Permalink
Remove not required default setting
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoHood committed Jan 12, 2021
1 parent 2d3ca9b commit bab539e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions templates/forms/fields/checkboxes/checkboxes.html.twig
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{% extends "forms/field.html.twig" %}

{% set originalValue = value %}
{% set value = (value is null ? field.default : value) %}
{% if field.use == 'keys' and field.default and value is null %}
{% set value = field.default|merge(value) %}
{% endif %}

{% block global_attributes %}
{{ parent() }}
Expand Down

0 comments on commit bab539e

Please sign in to comment.