Skip to content

Commit 748348e

Browse files
committed
fix error when trying to create a new alert
1 parent 9142808 commit 748348e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

templates/components/news_fields_macros.html.twig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
type="checkbox"
4040
value="1"
4141
{{ current_values[key] ? 'checked' : '' }}
42-
{{ options.readonly ? 'readonly' : '' }}
43-
{{ options.disabled ? 'disabled' : '' }}
42+
{{ options.readonly|default(false) ? 'readonly' : '' }}
43+
{{ options.disabled|default(false) ? 'disabled' : '' }}
4444
>
4545
<span class="form-check-label">{{ label }}</span>
4646
</label>
@@ -62,7 +62,6 @@
6262
name="{{ name }}"
6363
value=""
6464
class="form-selectgroup-input"
65-
{{ value == key ? 'checked' : '' }}
6665
>
6766
<span class="form-selectgroup-label">{{ __('No icon', 'news') }}</span>
6867
</label>

0 commit comments

Comments
 (0)