Fixed bug #5094: Record alt_label was not processed (patch by Volker Graubaum and...
authorMichael Stucki <michael.stucki@typo3.org>
Fri, 6 Jul 2007 18:27:39 +0000 (18:27 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Fri, 6 Jul 2007 18:27:39 +0000 (18:27 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-1@2386 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_befunc.php

index f211070..39ba100 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2007-07-06  Michael Stucki  <michael@typo3.org>
 
        * Fix in indexed search: List of indexed pages could be broken if mutli-byte chars are cut in the middle (patch by Karsten Dambekalns)
+       * Fixed bug #5094: Record alt_label was not processed (patch by Volker Graubaum and Thomas Hempel)
 
 2007-07-02  Oliver Hader  <oh@inpublica.de>
 
index 8a57a2d..7fa5ffc 100755 (executable)
@@ -1851,12 +1851,18 @@ class t3lib_BEfunc      {
                                if ($TCA[$table]['ctrl']['label_alt'] && ($TCA[$table]['ctrl']['label_alt_force'] || !strcmp($t,'')))   {
                                        $altFields=t3lib_div::trimExplode(',',$TCA[$table]['ctrl']['label_alt'],1);
                                        $tA=array();
-                                       $tA[]=$t;
-                                       if ($TCA[$table]['ctrl']['label_alt_force'])    {
-                                               foreach ($altFields as $fN)     {
-                                                       $t = trim(strip_tags($row[$fN]));
-                                                       if (!empty($t)) $tA[] = $t;
+                                       if (!empty($t)) $tA[] = $t;
+                                       foreach ($altFields as $fN)     {
+                                               $t = trim(strip_tags($row[$fN]));
+                                               if (strcmp($t,''))      {
+                                                       $t = t3lib_BEfunc::getProcessedValue($table,$fN,$t);
+                                                       if (!$TCA[$table]['ctrl']['label_alt_force'])   {
+                                                               break;
+                                                       }
+                                                       $tA[] = $t;
                                                }
+                                       }
+                                       if ($TCA[$table]['ctrl']['label_alt_force'])    {
                                                $t=implode(', ',$tA);
                                        }
                                }