Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

FIX: If container is changed the child elements are not shown #15

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions Classes/Hooks/DrawItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,7 @@ public function collectItemsForColumn(PageLayoutView $parentObject, &$colPos, &$
$showLanguage = '';
}

if ($helper->getBackendUser()->workspace > 0 && $row['t3ver_wsid'] > 0) {
$where = 'AND t3ver_wsid = ' . $row['t3ver_wsid'];
}
$where .= ' AND colPos = -1 AND tx_gridelements_container IN (' . $row['uid'] . ',' . $specificIds['uid'] . ') AND tx_gridelements_columns=' . $colPos . $showHidden . $deleteClause . $showLanguage;
$where = ' AND colPos = -1 AND tx_gridelements_container IN (' . $row['uid'] . ',' . $specificIds['uid'] . ') AND tx_gridelements_columns=' . $colPos . $showHidden . $deleteClause . $showLanguage;

$queryParts = $parentObject->makeQueryArray('tt_content', $row['pid'], $where);

Expand Down