fixed #6932: Unlike the default preview language, fields of additionalPreviewLanguage...
authorIngo Renner <ingo.renner@typo3.org>
Mon, 14 Jan 2008 13:51:45 +0000 (13:51 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Mon, 14 Jan 2008 13:51:45 +0000 (13:51 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2883 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tceforms.php

index a7f71ab..29eae48 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-01-14  Ingo Renner  <ingo@typo3.org>
+
+       * fixed #6932: Unlike the default preview language, fields of additionalPreviewLanguages are shown if they are empty. credits Helmut Ummel
+
 2008-01-11  Stanislas Rolland  <stanislas.rolland@fructifor.ca>
 
        * htmlArea RTE: Update manual and version to 1.6.4dev
index 4a6316a..32494b5 100755 (executable)
@@ -3153,7 +3153,10 @@ class t3lib_TCEforms     {
                        $prLang = $this->getAdditionalPreviewLanguages();
                        foreach($prLang as $prL)        {
                                $dlVal = t3lib_BEfunc::getProcessedValue($table,$field,$this->additionalPreviewLanguageData[$table.':'.$row['uid']][$prL['uid']][$field],0,1);
-                               $item.= '<div class="typo3-TCEforms-originalLanguageValue">'.$this->getLanguageIcon($table,$row,'v'.$prL['ISOcode']).$this->previewFieldValue($dlVal, $fCfg).'&nbsp;</div>';
+
+                               if(strcmp($dlVal, '')) {
+                                       $item.= '<div class="typo3-TCEforms-originalLanguageValue">'.$this->getLanguageIcon($table, $row, 'v'.$prL['ISOcode']).$this->previewFieldValue($dlVal, $fCfg).'&nbsp;</div>';
+                               }
                        }
 
                }