Project

General

Profile

Actions

Bug #28951

closed

modulemenu.js: Showmodule can be called before Store is loaded

Added by Thomas Pilgaard Carlsen over 12 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
-
Target version:
Start date:
2011-08-12
Due date:
% Done:

100%

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

Description

Example: Using the direct page edit feature (backend.php?edit=xxx) the BE responds with "Module loader
No module found. If this is a temporary error, please reload the Backend!" error. I found that the ajax loading of modules in modulemenu.js took almost 1 second on this particular installation and therefore showModule was called before the modules had finished loading.

I introduced the following hack in showModule after which the BE successfully could load the page edit module:

showModule: function(mod, params) {
        if(TYPO3.ModuleMenu.Store.getCount() == 0){
            setTimeout("top.TYPO3.ModuleMenu.App.showModule('"+mod+"', '"+params+"')", 1000);
            return;
        }

A better approach would probably be to make the modulemenu block until it had completed it's initialization.


Related issues 1 (0 open1 closed)

Precedes TYPO3 Core - Bug #30771: Fix not working backend.php?edit=pidClosedKay Strobach2011-10-11

Actions
Actions

Also available in: Atom PDF