Skip to content

Commit

Permalink
Merge pull request #39 from sunnysideup/patch-1
Browse files Browse the repository at this point in the history
FIX: getRecord call with a fake parameter
  • Loading branch information
lekoala authored Jul 1, 2024
2 parents 9352c73 + 4755204 commit d612a20
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 d612a20

Please sign in to comment.