Issue Bug Closed

#37065Workspace preview (FE) shows duplicate records

Thorsten Kahler 05/10/12, 14:37 updated 10/02/18, 12:17

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:

  1. Install (and configure) EXT:blog_example
  2. create blog record (live)
  3. create blog post record (live)
  4. switch to any workspace
  5. edit blog post (workspace)
  6. open preview of page containing “list of blogs” plugin

This shows the blog created above containing two blog posts (in workspace frame).

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.