Skip to content

Commit

Permalink
FIX: getRecord call with a fake parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnysideup committed Jul 1, 2024
1 parent 9352c73 commit 4755204
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ActionsGridFieldItemRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ public function updateEditForm(Form $form)
*/
public function recordCmsUtils()
{
$record = $this->owner->getRecord();
if ($record->hasMethod('getCMSUtils')) {
$record = $this->owner->getRecord(0);
if ($record && $record->hasMethod('getCMSUtils')) {
$utils = $record->getCMSUtils();
$this->extend('onCMSUtils', $utils, $record);
$record->extend('onCMSUtils', $utils);
Expand Down

0 comments on commit 4755204

Please sign in to comment.