Skip to content

Commit

Permalink
[TASK] Fix cgl
Browse files Browse the repository at this point in the history
(cherry picked from commit 6d899fa)
  • Loading branch information
nhovratov committed Jan 2, 2024
1 parent 6c382a0 commit a3d0a1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Classes/Helper/InlineHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ protected function fillInlineField(array &$data, FieldType $fieldType, string $f
if ($fieldType->equals(FieldType::INLINE) && $this->tableDefinitionCollection->hasTable($field)) {
$elements = $this->getInlineElements($data, $field, $cType, 'parentid', $table, null, $originalTable);
$data[$field] = $elements;
// or if it is of type Content (Nested Content) and has to be filled
// or if it is of type Content (Nested Content) and has to be filled
} elseif ($fieldType->equals(FieldType::CONTENT)) {
$content = $this->getRelations((string)($data[$field] ?? ''), $tcaFieldConfig['config']['foreign_table'], '', (int)$data['uid'], $table, $tcaFieldConfig['config'] ?? []);
foreach ($content as $key => $element) {
Expand Down
6 changes: 3 additions & 3 deletions Classes/ItemsProcFuncs/ColPosList.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ public function itemsProcFunc(&$params, $parentObj): void
null,
],
];
// if it is not inline tt_content element
// and if other itemsProcFunc from other extension was available (e.g. gridelements),
// then call it now and let it render the items
// if it is not inline tt_content element
// and if other itemsProcFunc from other extension was available (e.g. gridelements),
// then call it now and let it render the items
} elseif (!empty($params['config']['m_itemsProcFunc'])) {
GeneralUtility::callUserFunction(
$params['config']['m_itemsProcFunc'],
Expand Down

0 comments on commit a3d0a1f

Please sign in to comment.