#2945 Fast create edit category error

This commit is contained in:
Diatrex 2020-12-21 14:50:46 +03:00
parent c7b1a9af7b
commit 7f21b02fd0

View File

@ -4,8 +4,9 @@
{{ content|raw }}
{% if form.mode == 'edit' %}
{% set entry = form.entry.setAttribute('cf_json', null) %}
<script>
const ad = JSON.parse(`{{ form.entry|json_encode|raw }}`)
const ad = JSON.parse(`{{ entry|json_encode|raw }}`)
</script>
{% endif %}
{% endblock %}