Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Change 'choice_value' to new format

Pacu2af3cdc73aef3
diff --git a/templates/materializecssform/field.html b/templates/materializecssform/field.html
index 37e1870731..1374cbd2da 100644
--- a/templates/materializecssform/field.html
+++ b/templates/materializecssform/field.html
@@ -35,7 +35,16 @@
{% endif %}
{% for choice in field %}
<p>
- <input id="{{ choice.id_for_label }}" name="{{ choice.name }}" class="filled-in" type="checkbox" value="{{ choice.choice_value }}" {% if choice.choice_value in choice.value %} checked="checked" {% endif %}>
+ <input
+ id="{{ choice.id_for_label }}"
+ name="{{ choice.name }}"
+ class="filled-in"
+ type="checkbox"
+ value="{{ choice.data.value }}"
+ {% if choice.data.value in choice.value %}
+ checked="checked"
+ {% endif %}
+ >
<label for="{{ choice.id_for_label }}">
{{ choice.choice_label }}
</label>