[TYPO3-core] RFC: bug #549

Wolfgang Klinger wolfgang at stufenlos.net
Sun Feb 26 15:26:56 CET 2006


 *hiya!*

 Type: bugfix

 No information about deleted records in the backend log.
 BT reference: http://bugs.typo3.org/view.php?id=549

 I badly needed this last week... I was not able to convict
 a client, though I'm sure he deleted the page himself. ;-(

 I wonder why nobody integrated that already.. hmmm


 bye
 Wolfgang

-------------- next part --------------
--- TYPO3core/t3lib/class.t3lib_tcemain.php	2006-02-26 11:14:26.000000000 +0100
+++ TYPO3core_testing/t3lib/class.t3lib_tcemain.php	2006-02-26 15:14:04.000000000 +0100
@@ -3113,7 +3113,18 @@
 
 				$state = $undeleteRecord ? 1 : 3;	// 1 means insert, 3 means delete
 				if (!$GLOBALS['TYPO3_DB']->sql_error())	{
-					$this->log($table,$uid,$state,0,0,'');
+					$propArr = $this->getRecordProperties($table, $uid);
+					$page_propArr = $this->getRecordProperties('pages', $propArr['pid']);
+					$this->log( $table, $uid, $state, $propArr['pid'], 0,
+								"Record '%s' (%s) was deleted from page '%s' (%s)", 0,
+								array(
+									$propArr['header'],
+									$table.':'.$uid,
+									$page_propArr['header'],
+									$propArr['pid']
+									),
+								$propArr['pid']);
+
 				} else {
 					$this->log($table,$uid,$state,0,100,$GLOBALS['TYPO3_DB']->sql_error());
 				}


More information about the TYPO3-team-core mailing list