Bug #28951
closed
modulemenu.js: Showmodule can be called before Store is loaded
Added by Thomas Pilgaard Carlsen over 13 years ago.
Updated about 7 years ago.
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.
- Status changed from New to Accepted
- Target version set to 4.6.0-beta2
- Complexity set to medium
- Target version changed from 4.6.0-beta2 to 4.6.0-beta3
- Target version changed from 4.6.0-beta3 to 4.6.0-RC1
Patch set 1 of change Ia7c39fc94e75ef003a7a839856ea78cbd0854a66 has been pushed to the review server.
It is available at http://review.typo3.org/5681
- Status changed from Accepted to Under Review
Patch set 2 of change Ia7c39fc94e75ef003a7a839856ea78cbd0854a66 has been pushed to the review server.
It is available at http://review.typo3.org/5681
Patch set 3 of change Ia7c39fc94e75ef003a7a839856ea78cbd0854a66 has been pushed to the review server.
It is available at http://review.typo3.org/5681
Patch set 4 of change Ia7c39fc94e75ef003a7a839856ea78cbd0854a66 has been pushed to the review server.
It is available at http://review.typo3.org/5681
Patch set 1 of change I555427d61845678c1f90e2039c41cdd2055e5b6a has been pushed to the review server.
It is available at http://review.typo3.org/5712
- Status changed from Under Review to Resolved
- Assignee set to Oliver Hader
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF