Issue Bug Closed

#21580JSMENU's fallback menu name is not unique

Andreas Rieser 11/17/09, 11:38 updated 07/02/10, 11:17

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.