[TYPO3-dev] Typo3 4.4 workspaces: No versioningPlaceholderClause used for getTable_tt_content?
Thomas Brandl
thomas.brandl at native-instruments.de
Mon Jul 12 10:20:04 CEST 2010
Hi,
no follow up on this matter so far? Would you recommend to post this in
another mailing list - because I fear I am mistaken or have a messed up
configuration?
Otherwise I'd report this as a bug - what do you think?
Thanks a lot for some enlightening!
Best,
t
Thomas Brandl wrote:
> Hi,
>
> when creating a new page element in a workspace, this element also
> appears in the live view of the page in the backend Page module. There
> is no visible difference between content elements that are live and
> the content element that should only be visible in another workspace.
>
> The code here speaks for itself:
>
> The content elements are retrieved by
> tx_cms_layout::getTable_tt_content() where the query is lacking a
> WHERE statement to restrict workspaces:
>
> $queryParts = $this->makeQueryArray('tt_content', $id, 'AND
> colPos='.intval($key).$showHidden.$showLanguage);
> $result = $GLOBALS['TYPO3_DB']->exec_SELECT_queryArray($queryParts);
>
> Adding t3lib_BEfunc::versioningPlaceholderClause('tt_content') to the
> WHERE clause does not suffice, since
> t3lib_BEfunc::versioningPlaceholderClause() only acts in a workspace
> other than the live one:
>
> public static function versioningPlaceholderClause($table) {
> if ($GLOBALS['BE_USER']->workspace!==0 ...
>
> This does not seem as a bug to me since I haven't found any complaints
> about this although it's a behavior anyone could miss. On the other
> hand, seeing workspace elements in the live "Page" view is definitely
> not something I want - at least not w/o any visual difference to live
> content elements.
>
> Can anybody explain whether this is a feature and what the
> idea/benefit is behind this or confirm it as a bug?
>
> Thanks a lot!
>
> Best,
> Thomas
--
Thomas Brandl
Senior Webdeveloper | Marketing
Tel +49-30-611035-1552
Fax +49-30-611035-2552
thomas.brandl at native-instruments.de
NATIVE INSTRUMENTS GmbH
Schlesische Str. 28
10997 Berlin, Germany
http://www.native-instruments.com
***
MASCHINE - the next-generation groove production studio
=> http://www.native-instruments.com/maschine.info
AUDIO 4 DJ - the premium 4-channel interface for DJs
=> http://www.native-instruments.com/audio4dj.info
->>>>>> NATIVE INSTRUMENTS - The Future of Sound <<<<<<-
Registergericht: Amtsgericht Charlottenburg
Registernummer: HRB 72458
UST.-ID.-Nr. DE 20 374 7747
Geschäftsführung: Daniel Haver (CEO), Mate Galic
More information about the TYPO3-dev
mailing list