From 265050ffac9f18f220a5fcd2af99087ae6e28259 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Fri, 25 Oct 2024 13:33:53 +1300 Subject: [PATCH] API Update code to reflect changes in silverstripe/admin --- src/Extension/FluentCMSMainExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Extension/FluentCMSMainExtension.php b/src/Extension/FluentCMSMainExtension.php index 3a7ef90f..318f13c2 100644 --- a/src/Extension/FluentCMSMainExtension.php +++ b/src/Extension/FluentCMSMainExtension.php @@ -106,7 +106,7 @@ public function publish_localised_copy($data, $form) protected function getRecordForLocalisedAction($data, $form): ?DataObject { $id = (int) $data['ID']; - $className = $this->owner->config()->get('tree_class'); + $className = $this->owner->config()->get('model_class'); if (!$id || !$className) { // Invalid inputs