[TYPO3-core] RFC #14488: prioriCalc no longer working correctly due to changes in rev 7592

Franz Koch typo3.RemoveForMessage at elements-net.de
Thu May 27 02:42:15 CEST 2010


Hi,

this is a SVN patch request.

-----------------------------------------------------
Type:       Bugfix
-----------------------------------------------------
Bugtracker: http://bugs.typo3.org/view.php?id=14488
-----------------------------------------------------


-----------------------------------------------------
Issue:
-----------------------------------------------------
The changes in rev 7592 broke prioriCalc. The replacement of the 
while(list()) in method "calcPriority" of class.t3lib_div.php cause a 
wrong calculation, because the first array element is used twice for 
calculation as foreach loops the whole array and is not just iterating 
starting at current pointer.


-----------------------------------------------------
Solution:
-----------------------------------------------------
Either revert the changes from 7592 for class.t3lib_div.php or apply my 
attached patch, that's keeping the "foreach" loop instead 
"while(list())" but fixes the issue.



-- 
kind regards,
Franz Koch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: calcPriority.diff
Type: text/x-diff
Size: 624 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100527/90fd756e/attachment.diff>


More information about the TYPO3-team-core mailing list