Bug #21580
closedJSMENU's fallback menu name is not unique
0%
Description
In 4.1.13 you are not able to put multiple jsmenus on one page - except you define explicitely a name for each menu. The problem is the fallback value for $this->JSMenuName which is hardcoded as 'JSmenu' in the beginning of writeMenu(). There should be added a hash e.g.
--- $this->JSMenuName= $this->mconf['menuName'] ? $this->mconf['menuName'] : 'JSmenu';
+++ $this->JSMenuName= $this->mconf['menuName'] ? $this->mconf['menuName'] :'JSmenu'.md5(microtime());
or whatever else seems suitable here.
It seems like the TS in css_styled_content has changed so I stumbled across this a while ago. I had a page where multiple content elements of type menu/sitemap where implemented as jsmenu. With an Update from 4.1.2 to 4.1.13 the menus stopped working. Only the first one was filled with values and selecting a value didn't lead to a redirect.
(issue imported from #M12625)
Files
Updated by Benni Mack almost 15 years ago
The attached patch fixes the problem for 4.3 and trunk. I sent the patch to the core list so it can go in 4.3.1
Updated by Benni Mack over 14 years ago
committed to trunk (rev. 6934)
committed to TYPO3_4-3 (rev. 6935)