Follow-up to bug #11513: Shorten one ident field which is known to be too long (solve...
authorMichael Stucki <michael.stucki@typo3.org>
Wed, 12 Aug 2009 09:07:32 +0000 (09:07 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Wed, 12 Aug 2009 09:07:32 +0000 (09:07 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@5779 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tstemplate.php

index 72776f5..677421a 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2009-08-12  Michael Stucki  <michael@typo3.org>
 
+       * Follow-up to bug #11513: Shorten one ident field which is known to be too long (solved the issue on those setups where the DB is not updated)
        * Fixed bug #11513: cache_hash table could not be filled because information field (ident) was too short (thanks to Ingo Schmitt)
 
 2009-08-02  Oliver Hader  <oliver@typo3.org>
index 4181699..225f64a 100755 (executable)
@@ -374,7 +374,8 @@ class t3lib_TStemplate      {
                                if ($this->tt_track)    $GLOBALS['TT']->setTSlogMessage('TS template size, serialized: '.strlen(serialize($this->setup)).' bytes');
 
                                $rowSumHash = md5('ROWSUM:'.serialize($this->rowSum));
-                               t3lib_pageSelect::storeHash($rowSumHash, serialize($cc['all']), 'TMPL CONDITIONS - ALL');
+                                       // Note: Do not fix the obvious typo below! The reason for cutting "ALL" is that in older TYPO3 versions, the field "ident" was just 20 bytes long, so by writing "ALL" the string would be too long for that.
+                               t3lib_pageSelect::storeHash($rowSumHash, serialize($cc['all']), 'TMPL CONDITIONS - AL');
                        }
                                // Add rootLine
                        $cc['rootLine'] = $this->rootLine;