Project

General

Profile

Bug #45332 » 45332.diff

Marc Wöhlken, 2013-05-28 21:24

View differences:

typo3/sysext/core/Classes/Category/Collection/CategoryCollection.php
protected function getCollectedRecords() {
$relatedRecords = array();
/** @var $GLOBALS['TYPO3_DB'] \TYPO3\CMS\Core\Database\DatabaseConnection */
$resource = $this->getDatabase()->exec_SELECT_mm_query($this->getItemTableName() . '.*', self::$storageTableName, 'sys_category_record_mm', $this->getItemTableName(), 'AND ' . self::$storageTableName . '.uid=' . intval($this->getIdentifier()));
$resource = $this->getDatabase()->exec_SELECT_mm_query($this->getItemTableName() . '.*', self::$storageTableName, 'sys_category_record_mm', $this->getItemTableName(), 'AND ' . self::$storageTableName . '.uid=' . intval($this->getIdentifier()) . ' AND sys_category_record_mm.tablenames = "' . $this->getItemTableName() . '"');
if ($resource) {
while ($record = $this->getDatabase()->sql_fetch_assoc($resource)) {
$relatedRecords[] = $record;
    (1-1/1)