[BUGFIX] Constant editor doesn't show new values after save 75/39575/3
authorSebastian Michaelsen <sebastian@michaelsen.io>
Fri, 15 May 2015 20:44:17 +0000 (22:44 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Sat, 16 May 2015 00:36:42 +0000 (02:36 +0200)
Re-read the constant values to be displayed in the form after a data
update was performed.

Resolves: #65824
Releases: master
Change-Id: Ibfdd42b5fd6ce1103b6787594f9eaee60ea14223
Reviewed-on: http://review.typo3.org/39575
Reviewed-by: Stephan GroƟberndt <stephan@grossberndt.de>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateConstantEditorModuleFunctionController.php

index 2e0b9ef..ba2890e 100644 (file)
@@ -143,6 +143,8 @@ class TypoScriptTemplateConstantEditorModuleFunctionController extends AbstractF
                                        $tce->clear_cacheCmd('all');
                                        // re-read the template ...
                                        $this->initialize_editor($this->pObj->id, $template_uid);
+                                       // re-read the constants as they have changed
+                                       $theConstants = $this->getConstants();
                                }
                        }
                        // Resetting the menu (start). I wonder if this in any way is a violation of the menu-system. Haven't checked. But need to do it here, because the menu is dependent on the categories available.