diff --git a/src/Forms/HistoryViewerField.php b/src/Forms/HistoryViewerField.php index 8459d45d..9a346fe6 100644 --- a/src/Forms/HistoryViewerField.php +++ b/src/Forms/HistoryViewerField.php @@ -113,21 +113,6 @@ public function getSchemaDataDefaults() return $data; } - /** - * When not used in a React form factory context, this adds the schema data to SilverStripe template - * rendered attributes lists - * - * @return array - */ - public function getAttributes() - { - $attributes = parent::getAttributes(); - - $attributes['data-schema'] = json_encode($this->getSchemaData()); - - return $attributes; - } - public function Type() { return 'history-viewer__container'; diff --git a/templates/SilverStripe/VersionedAdmin/Forms/HistoryViewerField.ss b/templates/SilverStripe/VersionedAdmin/Forms/HistoryViewerField.ss index 9cc9030c..df0dc2c1 100644 --- a/templates/SilverStripe/VersionedAdmin/Forms/HistoryViewerField.ss +++ b/templates/SilverStripe/VersionedAdmin/Forms/HistoryViewerField.ss @@ -1,3 +1,3 @@ -