[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)
committerTolleiv Nietsch <info@tolleiv.de>
Thu, 8 Mar 2012 09:02:51 +0000 (10:02 +0100)
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: I1eb1b5ed731b86285a54c87e82b738a1841f0d72
Resolves: #17910
Releases: 4.4, 4.5, 4.6
Reviewed-on: http://review.typo3.org/6210
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Wouter Wolters
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
t3lib/class.t3lib_tceforms.php

index e85a1e5..12fa2ab 100644 (file)
@@ -3468,7 +3468,7 @@ class t3lib_TCEforms {
                        foreach ($prLang as $prL) {
                                $t8Tools = t3lib_div::makeInstance('t3lib_transl8tools');
                                $tInfo = $t8Tools->translationInfo($lookUpTable, intval($rec[$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']));
                                }
                        }