Skip to content
Snippets Groups Projects
Commit 4294e2d4 authored by totten's avatar totten
Browse files

ArrayHtml - Treat `<af-entity/>` and `<af-field/>` as self-closing tags

parent f7f62788
Branches
Tags
No related merge requests found
......@@ -22,11 +22,13 @@ class CRM_Afform_ArrayHtml {
'*' => 'text',
],
'af-entity' => [
'#selfClose' => TRUE,
'name' => 'text',
'type' => 'text',
'data' => 'js',
],
'af-field' => [
'#selfClose' => TRUE,
'name' => 'text',
'defn' => 'js',
],
......
<?php
return [
'html' => '<div><strong>New text!</strong><af-field name="do_not_sms" defn="{label: \'Do not do any of the emailing\'}"></af-field></div>',
'html' => '<div><strong>New text!</strong><af-field name="do_not_sms" defn="{label: \'Do not do any of the emailing\'}" /></div>',
'shallow' => [
[
'#tag' => 'div',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment