Bug #16206
closedCan not delete version of a root tree page
0%
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
Updated by Clemens Kalb over 17 years ago
I can confirm this issue and I am surprised nobody else has jumped on the bandwagon yet. The issue also affects (prohibits!) creating new elements on a page in TemplaVoila as this requires modifying the versioned page record.
I have attached a patch for the issue based on the fix suggested by the original reporter.
Updated by Tolleiv Nietsch almost 13 years ago
- Category deleted (
Miscellaneous) - Status changed from New to Closed
- Target version deleted (
0)
Patch already in place
Updated by Michael Stucki over 10 years ago
- Project changed from 624 to TYPO3 Core
- Category changed from Workspaces to Workspaces