[BUGFIX] EXT:form - themeName can not be overwritten by integrator 05/43805/4
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Sun, 4 Oct 2015 23:09:44 +0000 (01:09 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Wed, 7 Oct 2015 17:42:56 +0000 (19:42 +0200)
It is possible to set a new themeName for a specific form but it is not
possible to set it for the whole plugin via

plugin.tx_form.settings.registeredElements.FORM.themeName = Mytheme

Resolves: #70368
Releases: master
Change-Id: I76e7584dd9b333c56c0dc4c05a7d5e78b0a7c225
Reviewed-on: http://review.typo3.org/43805
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/form/Classes/Domain/Model/Configuration.php

index f745a4e..3789bfa 100644 (file)
@@ -184,6 +184,8 @@ class Configuration {
                // Set the theme name
                if (!empty($this->typoScript['themeName'])) {
                        $this->setThemeName($this->typoScript['themeName']);
+               } elseif (!empty($this->typoScriptRepository->getModelConfigurationByScope('FORM', 'themeName'))) {
+                       $this->setThemeName($this->typoScriptRepository->getModelConfigurationByScope('FORM', 'themeName'));
                } else {
                        $this->setThemeName(static::DEFAULT_THEME_NAME);
                }