From 1b905bc8c35c236b902870d0ba40a1a38d136521 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Fri, 15 Nov 2024 13:59:48 +1300 Subject: [PATCH] FIX Avoid infinite recursive loop with attributes in schemadata --- code/Forms/UsedOnTable.php | 2 -- templates/SilverStripe/Admin/Forms/UsedOnTable.ss | 2 +- .../templates/SilverStripe/Forms/SearchableDropdownField.ss | 2 +- .../SilverStripe/Forms/SearchableMultiDropdownField.ss | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/code/Forms/UsedOnTable.php b/code/Forms/UsedOnTable.php index 5897e0012..1c0f15a95 100644 --- a/code/Forms/UsedOnTable.php +++ b/code/Forms/UsedOnTable.php @@ -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); diff --git a/templates/SilverStripe/Admin/Forms/UsedOnTable.ss b/templates/SilverStripe/Admin/Forms/UsedOnTable.ss index 3e35e7b36..98c0f0672 100644 --- a/templates/SilverStripe/Admin/Forms/UsedOnTable.ss +++ b/templates/SilverStripe/Admin/Forms/UsedOnTable.ss @@ -1 +1 @@ -
+
diff --git a/themes/cms-forms/templates/SilverStripe/Forms/SearchableDropdownField.ss b/themes/cms-forms/templates/SilverStripe/Forms/SearchableDropdownField.ss index 01f51a51e..51c8f91b4 100644 --- a/themes/cms-forms/templates/SilverStripe/Forms/SearchableDropdownField.ss +++ b/themes/cms-forms/templates/SilverStripe/Forms/SearchableDropdownField.ss @@ -1 +1 @@ -
+
diff --git a/themes/cms-forms/templates/SilverStripe/Forms/SearchableMultiDropdownField.ss b/themes/cms-forms/templates/SilverStripe/Forms/SearchableMultiDropdownField.ss index 01f51a51e..51c8f91b4 100644 --- a/themes/cms-forms/templates/SilverStripe/Forms/SearchableMultiDropdownField.ss +++ b/themes/cms-forms/templates/SilverStripe/Forms/SearchableMultiDropdownField.ss @@ -1 +1 @@ -
+