Skip to content

Commit

Permalink
fix "FluidTYPO3\Flux\Provider\AbstractProvider::getGrid(): Argument F…
Browse files Browse the repository at this point in the history
…luidTYPO3#1 ($row) must be of type array"
  • Loading branch information
Sven Wappler committed Oct 12, 2022
1 parent 5de8b8d commit 357e93d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Integration/HookSubscribers/DataHandlerSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function processDatamap_preProcessFieldArray(array &$fieldArray, $table,
if ($primaryConfigurationProvider && is_array($fieldArray[$fieldName]) && array_key_exists('data', $fieldArray[$fieldName])) {
foreach ($fieldArray[$fieldName]['data'] as $sheet) {
foreach ($sheet['lDEF'] as $key => $value) {
list ($possibleTableName, $columnName) = explode('.', $key, 2);
[$possibleTableName, $columnName] = array_pad(explode('.', $key, 2), 2, null);
if ($possibleTableName === $table && isset($GLOBALS['TCA'][$table]['columns'][$columnName])) {
$fieldArray[$columnName] = $value['vDEF'];
}
Expand Down Expand Up @@ -422,7 +422,7 @@ protected function getParentAndRecordsNestedInGrid(string $table, int $parentUid
GridProviderInterface::class
);

if (!$primaryProvider) {
if (!$primaryProvider || $originalRecord === null) {
return [
$originalRecord,
[]
Expand Down

0 comments on commit 357e93d

Please sign in to comment.