Issue Bug Closed

#16206Can not delete version of a root tree page

GUERARD Vincent 05/31/06, 16:41 updated 12/10/13, 01:05

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)

Reviews 0

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