Project

General

Profile

Bug #44312 ยป RootlineUtility2.diff

Devid Messner, 2013-01-11 12:04

View differences:

typo3/sysext/core/Classes/Utility/RootlineUtility.php 2013-01-11 11:58:04.000000000 +0100
$this->pageContext->versionOL('pages', $row, FALSE, TRUE);
$this->pageContext->fixVersioningPid('pages', $row);
if (is_array($row)) {
$this->pageContext->getPageOverlay($row, $this->languageUid);
$row = $this->pageContext->getPageOverlay($row, $this->languageUid);
$row = $this->enrichWithRelationFields($uid, $row);
self::$pageRecordCache[$this->getCacheIdentifier($uid)] = $row;
}
......
} elseif ($configuration['foreign_field']) {
$table = $configuration['foreign_table'];
$field = $configuration['foreign_field'];
$whereClauseParts = array($field . ' = ' . intval($uid));
if(intval($this->languageUid) > 0){
$whereClauseParts = array($field . ' = ' . intval($pageRecord['_PAGES_OVERLAY_UID']));
} else {
$whereClauseParts = array($field . ' = ' . intval($uid));
}
if (isset($configuration['foreign_match_fields']) && is_array($configuration['foreign_match_fields'])) {
foreach ($configuration['foreign_match_fields'] as $field => $value) {
$whereClauseParts[] = $field . ' = ' . $GLOBALS['TYPO3_DB']->fullQuoteStr($value, $table);
    (1-1/1)