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 Nov 7, 2024
1 parent 65107b1 commit be93a2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion src/Extension/FluentLeftAndMainExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function onInit()
*/
protected function updateBreadcrumbs(ArrayList $breadcrumbs)
{
$record = $this->owner->currentPage();
$record = $this->owner->currentRecord();
if (!$record) {
return;
}
Expand Down

0 comments on commit be93a2c

Please sign in to comment.