From 65107b1d782c622b0500679db20c8af66932d429 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Wed, 6 Nov 2024 17:15:41 +1300 Subject: [PATCH] API Update code to reflect changes in silverstripe/admin (#902) --- 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