[BUGFIX] Template dropdown doesn't refresh template title after save 19/23919/3
authorTorben Hansen <t.hansen@skyfillers.com>
Fri, 20 Sep 2013 07:13:05 +0000 (09:13 +0200)
committerMarkus Klein <klein.t3@mfc-linz.at>
Mon, 13 Jan 2014 21:18:05 +0000 (22:18 +0100)
Reloads the template menu after the template title has been changed.

Resolves: #51805
Releases: 6.2, 6.1
Change-Id: I5d987a3ffc6a11dfa1ebe54480c9c3b69ccc1959
Change-Id: I41deee55f5feeaf079432d9dfd724228f70cf3c1
Reviewed-on: https://review.typo3.org/23919
Reviewed-by: Stefan Neufeind
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/tstemplate_info/Classes/Controller/TypoScriptTemplateInformationModuleFunctionController.php

index b96b7d4..86778c2 100644 (file)
@@ -271,6 +271,8 @@ class TypoScriptTemplateInformationModuleFunctionController extends \TYPO3\CMS\B
                                        $this->tce_processed = TRUE;
                                        // re-read the template ...
                                        $this->initialize_editor($this->pObj->id, $template_uid);
+                                       // Reload template menu
+                                       $manyTemplatesMenu = $this->pObj->templateMenu();
                                }
                                // If files has been edited:
                                if (is_array($edit)) {