[TYPO3-core] RFC: fix bug #2205

Wolfgang Klinger wolfgang at stufenlos.net
Sun Jan 8 19:54:29 CET 2006


 
 Hiya!

 This is my first post to this list, so please advice me via private mail
 if I have to handle this differently and I'd be glad if one of you can 
 send me a "CVS for beginners (focused on the TYPO3 project approach)" 
 along (as I'm always using Subversion).


 This is a CVS patch request.
 
 Type:
 bugfix
 
 Branches: TYPO3-4.0
 
 Description:
 It's not possible to delete page branches (recursive) 
 via the clipboard.
 
 Two possible solutions:
 either set deleteTree to "1" for the local instance of tcemain 
 (see db_list.php.diff) or set it directly for every instance
 in the start method of tcemain (see class.t3lib_tcemain.php.diff).
 
 I would prefer the second patch but I currently don't know about
 possible side effects.
 
 
 BT Reference:
 http://bugs.typo3.org/view.php?id=2205
 

 kind regards
 Wolfgang
 
-------------- next part --------------
--- t3lib/class.t3lib_tcemain.php	2006-01-08 19:24:32.000000000 +0100
+++ t3lib/class.t3lib_tcemain.php.new	2006-01-08 19:35:47.000000000 +0100
@@ -351,6 +351,10 @@
 		$this->username = $this->BE_USER->user['username'];
 		$this->admin = $this->BE_USER->user['admin'];
 
+		if ($GLOBALS['BE_USER']->uc['recursiveDelete'])    {
+			$this->deleteTree = 1;
+		}
+
 			// Initializing default permissions for pages
 		$defaultPermissions = $GLOBALS['TYPO3_CONF_VARS']['BE']['defaultPermissions'];
 		if (isset($defaultPermissions['user']))		{$this->defaultPermissions['user'] = $defaultPermissions['user'];}

-------------- next part --------------
--- typo3/db_list.php	2006-01-08 19:29:47.000000000 +0100
+++ typo3/db_list.php.new	2006-01-08 19:29:43.000000000 +0100
@@ -259,6 +259,11 @@
 						$cmd[$iKParts[0]][$iKParts[1]]['delete']=1;
 					}
 					$tce = t3lib_div::makeInstance('t3lib_TCEmain');
+
+					if ($BE_USER->uc['recursiveDelete'])    {
+						$tce->deleteTree = 1; // True if the delete Recursive flag is set.
+					}
+
 					$tce->stripslashes_values=0;
 					$tce->start(array(),$cmd);
 					$tce->process_cmdmap();



More information about the TYPO3-team-core mailing list