Skip to content

Commit

Permalink
ENH Update code to reflect changes to LeftAndMain (#912)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Dec 12, 2024
1 parent 1c5fc91 commit 7e98a0b
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 7e98a0b

Please sign in to comment.