Project

General

Profile

Actions

Bug #33439

closed

external tables in page modul and versioningWS 2

Added by Jari no-lastname-given almost 13 years ago. Updated over 7 years ago.

Status:
Rejected
Priority:
Should have
Category:
Workspaces
Target version:
-
Start date:
2012-01-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Im having a custom table with enabled versioning and sorting (versioningWS 2).
This table is also listed in the page module by setting:

ext_localconf.php

$TYPO3_CONF_VARS['EXTCONF']['cms']['db_layout']['addTables']['tx_myext_table']0 = array(
'fList' => 'title',
'icon' => TRUE
);

Now if i go into the draft worskapce, list module and change the sorting of a record and then switch back to the page module, i see the record twice.

When i change the sorting, typo3 creates some kind of special placeholder records as far as i know. Seems like those special placeholder records are not filtert in this listing. I've fixed this issue by adding one line of Code.

In sysext/cms/layout/class.tx_cms_layout.php line 143.

From:
$addWhere = $this->externalTables[$table][$type]['addWhere'];

To:
$addWhere = $this->externalTables[$table][$type]['addWhere'];
$addWhere .= t3lib_pageSelect::enableFields($table, 1, array('disabled', 'starttime', 'endtime', 'fe_group'));

So actually i've just added enableFields to the select statement.

Actions

Also available in: Atom PDF