Fixed bug #17075: No possibility to update the module menu via setUpdateSignal
authorSusanne Moog <typo3@susannemoog.de>
Wed, 19 Jan 2011 08:11:28 +0000 (08:11 +0000)
committerSusanne Moog <typo3@susannemoog.de>
Wed, 19 Jan 2011 08:11:28 +0000 (08:11 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10136 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_befunc.php

index d2c4fd4..c0c9d39 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-01-19  Susanne Moog  <typo3@susanne-moog.de>
+
+       * Fixed bug #17075: No possibility to update the module menu via setUpdateSignal
+
 2011-01-18  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #16045: htmlArea RTE: Merging table cells using context menu doesn't work in Firefox
index 9e83474..c3ce707 100644 (file)
@@ -3130,17 +3130,26 @@ final class t3lib_BEfunc {
                                t3lib_div::callUserFunction($updateSignals[$set], $params, $ref);
                                $signals[] = $params['JScode'];
                        } else {
-                               if ($set === 'updatePageTree') {
-                                       $signals[] = '
-                                               if (top && top.TYPO3.Backend.NavigationContainer.PageTree) {
-                                                       top.TYPO3.Backend.NavigationContainer.PageTree.refreshTree();
-                                               }
-                                       ';
-                               } else if ($set == 'updateFolderTree') {
-                                       $signals[] = '
-                                       if (top && top.TYPO3.Backend.NavigationIframe) {
-                                               top.TYPO3.Backend.NavigationIframe.refresh();
-                                       }';
+                               switch ($set) {
+                                       case 'updatePageTree':
+                                               $signals[] = '
+                                                       if (top && top.TYPO3.Backend.NavigationContainer.PageTree) {
+                                                               top.TYPO3.Backend.NavigationContainer.PageTree.refreshTree();
+                                                       }
+                                               ';
+                                               break;
+                                       case 'updateFolderTree':
+                                               $signals[] = '
+                                                       if (top && top.TYPO3.Backend.NavigationIframe) {
+                                                               top.TYPO3.Backend.NavigationIframe.refresh();
+                                                       }';
+                                               break;
+                                       case 'updateModuleMenu':
+                                               $signals[] = '
+                                                       if (top && top.TYPO3.ModuleMenu.App) {
+                                                               top.TYPO3.ModuleMenu.App.refreshMenu();
+                                                       }';
+                                               break;
                                }
                        }
                }