Skip to content

Commit

Permalink
FIX Avoid infinite recursive loop with attributes in schemadata
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Nov 15, 2024
1 parent afc8105 commit d776f1b
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') data-schema="$SchemaData.JSON" data-state="$SchemaState.JSON"></div>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<div $AttributesHTML></div>
<div $AttributesHTML data-schema="$SchemaData.JSON"></div>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<div $AttributesHTML></div>
<div $AttributesHTML data-schema="$SchemaData.JSON"></div>

0 comments on commit d776f1b

Please sign in to comment.