Actions
Bug #37065
closedWorkspace preview (FE) shows duplicate records
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2012-05-10
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
medium
Is Regression:
Sprint Focus:
Description
When in workspace preview versioned records, which are selected by any relation (except uid
or pid
) are shown twice: the original record and the versioned record.
This is caused by a wrong condition in t3lib_pageSelect::enableFields()
: the selection on pid<>-1
should only be added if parameter $noVersionPreview
is false. The parameter is only set to true to retrieve version overlays of specific records (see t3lib_pageSelect::getWorkspaceVersionOfRecord()
).
Steps to reproduce:
- Install (and configure) EXT:blog_example
- create blog record (live)
- create blog post record (live)
- switch to any workspace
- edit blog post (workspace)
- open preview of page containing "list of blogs" plugin
This shows the blog created above containing two blog posts (in workspace frame).
Actions