Skip to content

Commit 5490f9f

Browse files
author
Pantea Marius-ciclistu
committed
Fix pki
1 parent bf4d49b commit 5490f9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Middleware/Decorators/AbstractDecoratorMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ protected function getListNewContent(Request $request, array $content, array $co
205205
$decoratedRow = $this->decorator->decorate((array)$row);
206206
$decoratedRow[AbstractResourceDecorator::PKI] ??= AbstractResourceDecorator::applyHtmlSpecialChars(
207207
($onePk ??= \count($pks ??= $this->getPks()) === 1) ?
208-
$row[$firstPk ??= \reset($pks)] :
208+
$row[$firstPk ??= \reset($pks)] ?? null :
209209
\implode(
210210
($this->relatedModel ?? $this->resourceModel)::COMPOSITE_PK_SEPARATOR,
211211
\array_map(fn(string $pk): mixed => $row[$pk] ?? '', $pks)

0 commit comments

Comments
 (0)