hide form elements containing exports, if required but outdated FormManager (5.x) is installed

This commit is contained in:
Daniel Seifert 2021-11-10 15:04:26 +01:00
parent fcc218ad3a
commit 7b80b62d7f
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F

View File

@ -19,6 +19,8 @@ use D3\DataWizardTasks\Application\Model\Actions\FixWysiwygSpecialChars;
use D3\DataWizardTasks\Application\Model\Exports\DestroyedWysiwygSpecialChars;
use D3\DataWizardTasks\Application\Model\Exports\InactiveCategories;
use D3\DataWizardTasks\Application\Model\Exports\KeyFigures;
use FormManager\Builder;
use FormManager\Factory;
class Configuration extends Configuration_parent
{
@ -30,7 +32,10 @@ class Configuration extends Configuration_parent
$this->registerAction( ConfigurationParent::GROUP_CMS, oxNew( FixWysiwygSpecialChars::class));
$this->registerExport( ConfigurationParent::GROUP_CATEGORY, oxNew( InactiveCategories::class));
$this->registerExport( ConfigurationParent::GROUP_SHOP, oxNew( KeyFigures::class));
// incompatible FormManager 5.x
if (false === class_exists(Builder::class) && class_exists(Factory::class)) {
$this->registerExport( ConfigurationParent::GROUP_SHOP, oxNew( KeyFigures::class ) );
}
$this->registerExport( ConfigurationParent::GROUP_CMS, oxNew( DestroyedWysiwygSpecialChars::class));
}
}