Skip to content

Commit

Permalink
FIX Avoid infinite recursive loop with attributes in schemadata (#1853)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Nov 24, 2024
1 parent 1222c65 commit 64c9c5a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions code/Forms/UsedOnTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,6 @@ public function getAttributes()
$attributes = [
'class' => $this->extraClass(),
'id' => $this->ID(),
'data-schema' => json_encode($this->getSchemaData()),
'data-state' => json_encode($this->getSchemaState()),
];

$attributes = array_merge($attributes, $this->attributes);
Expand Down
2 changes: 1 addition & 1 deletion templates/SilverStripe/Admin/Forms/UsedOnTable.ss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<div class="used-on__polyfill-holder $extraClass" $getAttributesHTML('class')></div>
<div class="used-on__polyfill-holder $extraClass" $getAttributesHTML('class') $SchemaAttributesHtml></div>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<div $AttributesHTML></div>
<div $AttributesHTML $SchemaAttributesHtml></div>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<div $AttributesHTML></div>
<div $AttributesHTML $SchemaAttributesHtml></div>

0 comments on commit 64c9c5a

Please sign in to comment.