Project

General

Profile

Actions

Bug #21580

closed

JSMENU's fallback menu name is not unique

Added by Andreas Rieser about 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2009-11-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

12625.patch (809 Bytes) 12625.patch Administrator Admin, 2009-12-23 19:02
Actions

Also available in: Atom PDF