Skip to content

Commit

Permalink
ENH Update code to reflect changes to LeftAndMain
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Dec 10, 2024
1 parent 1c5fc91 commit 3b1a146
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('model_class');
$className = $this->owner->getModelClass();

if (!$id || !$className) {
// Invalid inputs
Expand Down

0 comments on commit 3b1a146

Please sign in to comment.