[TYPO3-core] RFC #14143: Bug: count_menuItems not working correctly

Frederic Gaus mailinglists at necroshine.de
Tue May 4 18:43:58 CEST 2010


This is an SVN patch request.

Type:
	Bugfix

Bugtracker References:
	http://bugs.typo3.org/view.php?id=14143

Branches:
	Trunk
	Maybe interesting for TYPO3 4.4 or even 4.3

Problem:
When rendering a menu with submenus the register count_menuItems is not 
working as expected. After rendering a submenu, the register value is 
not reset to the correct count of menu items inside the parent menu.

The result is, that all following menu items of the parent menu have the 
register "count_menuItems" set to the number of menuItems of the last 
rendered submenu.

Please, have a look at the screenshots inside the bugtracker.

Solution:
Recalculate the count of menu items after calling the functions

	$submenu->makeMenu();
	$submenu->writeMenu();

Regards,
Frederic


-- 
Frederic Gaus                                 pgp-key: 93E6903C
fingerprint: 0C55 4517 CC1E 5F7F 9059  3535 AB54 D8E8 93E6 903C
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: class.tslib_menu.php.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100504/0b66e688/attachment.txt>


More information about the TYPO3-team-core mailing list