Project

General

Profile

Actions

Bug #16206

closed

Can not delete version of a root tree page

Added by GUERARD Vincent almost 18 years ago. Updated over 10 years ago.

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

isInWebMount.versioning.diff (686 Bytes) isInWebMount.versioning.diff Administrator Admin, 2006-11-20 04:19
Actions #1

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.

Actions #2

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

Actions #3

Updated by Michael Stucki over 10 years ago

  • Category set to Workspaces
Actions #4

Updated by Michael Stucki over 10 years ago

  • Project changed from 624 to TYPO3 Core
  • Category changed from Workspaces to Workspaces
Actions

Also available in: Atom PDF