Skip to content

Commit aceb6da

Browse files
authored
Action support single table inheritance record (#18654)
Signed-off-by: Theofanis <[email protected]>
1 parent 948caa8 commit aceb6da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/actions/src/Action.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ public function getContext(): array
473473
(! $table)
474474
|| (! $record instanceof Model)
475475
|| blank($table->getModel())
476-
|| ($record::class === $table->getModel())
476+
|| is_a($record::class, $table->getModel(), true)
477477
) && filled($recordKey = $this->resolveRecordKey($record))) {
478478
$context['recordKey'] = $recordKey;
479479
}

0 commit comments

Comments
 (0)