Actions
Bug #16206
closedCan not delete version of a root tree page
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2006-05-31
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.0
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
For a webmount root page, we can't delete a draft version of this page.
- Create New page with admin User
- Give all access to this page
- Assign this page on a webmount of a user whose works on a workspace
- Connect with this user account
- You must show the created page. So, create a new version
- Then, try to delete the new draft
It seems that the problem is in BEUSER->isInWebMount function, which doesn't check if page is a new version of webmount page.
The new version page have the same rootline that the original page, but doesn t appear in webmount.
Then, if we add a test to replace $id with t3ver_oid before calling BEgetRootline, it would working
Something like this :
// Get if page id is an versionning page
$rec = t3lib_BEfunc::getRecord('pages',$id,'t3ver_oid');
if ($rec['t3ver_oid'] > 0 && $rec['t3ver_oid'] != $id) {
$id = $rec['t3ver_oid'];
}
$wM = $this->returnWebmounts();
$rL = t3lib_BEfunc::BEgetRootLine($id,' AND '.$readPerms);
(issue imported from #M3610)
Files
Actions