Skip to content

Commit

Permalink
API Update code to reflect changes in silverstripe/admin
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Oct 25, 2024
1 parent 9e1f08b commit 265050f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extension/FluentCMSMainExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 265050f

Please sign in to comment.