Bug #84985
closed
Published workspace record show in page tree
Added by Oliver Hader over 6 years ago.
Updated over 5 years ago.
Description
Steps to reproduce¶
- switch to some workspace
- change title of page & save
- publish workspace version to live
- reload page tree
Result¶
- page tree shows modified value
- page tree shows previous old version
Background¶
When publishing workspace records, the previous old version is still persisted with pid=-1
and t3ver_wsid=0
- that's correct. However, these records are not not filtered in the page tree.
Pointer¶
Flaws in resolving records in PageTreeRepository::fetchAllPages
and maybe in BackendWorkspaceRestriction
usage...
- Description updated (diff)
- Description updated (diff)
- Description updated (diff)
- Status changed from New to Under Review
- Category changed from Pagetree to Workspaces
same Problem when discard a change in FE Preview
Steps to reproduce:
- switch to some workspace
- change title (e.g. "title" to "title2") of page & save
- go to FE Preview and "discard" Change
- reload page tree in Backend
Result:
both pages are shown in Tree
DB:
+---------+------+------+--------+-------------+-----------+----------+------------------------+-------------+------------+
| deleted | pid | uid | title | t3ver_count | t3ver_oid | t3ver_id | t3ver_label | t3ver_state | t3ver_wsid |
+---------+------+------+--------+-------------+-----------+----------+------------------------+-------------+------------+
| 0 | 4710 | 5488 | title | 0 | 0 | 1 | First draft version | 0 | 0 |
| 0 | -1 | 5490 | title2 | 0 | 5488 | 2 | Auto-created for WS #4 | 0 | 0 |
+---------+------+------+--------+-------------+-----------+----------+------------------------+-------------+------------+
Expected result (which should be adapted in PageTreeRepository - line 215) - When in workspace, records which have been published should never show up. These can be identified with "pid = -1 AND t3ver_wsid=0"
- Related to Bug #85742: New page in workspace doesn't load content elements in preview added
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF