[BUGFIX] Error when editing a record with additionalPreviewLanguage and an deleted...
authorAndreas Wolf <andreas.wolf@ikt-werk.de>
Thu, 1 Sep 2011 17:39:38 +0000 (19:39 +0200)
committerAndreas Wolf <andreas.wolf@ikt-werk.de>
Mon, 24 Oct 2011 08:29:04 +0000 (10:29 +0200)
The behaviour that causes the error (translated elements are not deleted
when deleting parent) is fixed in recent TYPO3 versions; it is better to
do that additional check anyways (for old installations).

Change-Id: Id51afff4349a473f291ef50631b519942f45be13
Resolves: #17910
Releases: 4.4, 4.5, 4.6
Reviewed-on: http://review.typo3.org/4734
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
Reviewed-by: Björn Pedersen
Reviewed-by: Stefan Neufeind
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
t3lib/class.t3lib_tceforms.php

index 8f63e31..456a342 100644 (file)
@@ -3348,7 +3348,7 @@ class t3lib_TCEforms {
                                /** @var $t8Tools t3lib_transl8tools */
                                $t8Tools = t3lib_div::makeInstance('t3lib_transl8tools');
                                $tInfo = $t8Tools->translationInfo($lookUpTable, intval($rec[$GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField']]), $prL['uid']);
-                               if (is_array($tInfo['translations'][$prL['uid']])) {
+                               if (is_array($tInfo['translations']) && is_array($tInfo['translations'][$prL['uid']])) {
                                        $this->additionalPreviewLanguageData[$table . ':' . $rec['uid']][$prL['uid']] = t3lib_BEfunc::getRecordWSOL($table, intval($tInfo['translations'][$prL['uid']]['uid']));
                                }
                        }