Skip to content

Commit

Permalink
[TASK] Remove redundant condition
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Aug 12, 2023
1 parent cb10d5d commit 3f7eedf
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Configuration/TCA/Overrides/pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,8 @@
\FluidTYPO3\Flux\Backend\PageLayoutDataProvider::class . '->addItems'
);

$userFunctionsClass = new \FluidTYPO3\Flux\Integration\FormEngine\UserFunctions();
if (is_callable([$userFunctionsClass , 'fluxFormFieldDisplayCondition'])) {

// Flux version is recent enough to support the custom displayCond from Flux that hides the entire "flex" field
// if there are no fields in the DS it uses.
$GLOBALS['TCA']['pages']['columns']['tx_fed_page_flexform']['displayCond'] = 'USER:' . \FluidTYPO3\Flux\Integration\FormEngine\UserFunctions::class . '->fluxFormFieldDisplayCondition:pages:tx_fed_page_flexform';
$GLOBALS['TCA']['pages']['columns']['tx_fed_page_flexform_sub']['displayCond'] = 'USER:' . \FluidTYPO3\Flux\Integration\FormEngine\UserFunctions::class . '->fluxFormFieldDisplayCondition:pages:tx_fed_page_flexform_sub';
}
$GLOBALS['TCA']['pages']['columns']['tx_fed_page_flexform']['displayCond'] = 'USER:' . \FluidTYPO3\Flux\Integration\FormEngine\UserFunctions::class . '->fluxFormFieldDisplayCondition:pages:tx_fed_page_flexform';
$GLOBALS['TCA']['pages']['columns']['tx_fed_page_flexform_sub']['displayCond'] = 'USER:' . \FluidTYPO3\Flux\Integration\FormEngine\UserFunctions::class . '->fluxFormFieldDisplayCondition:pages:tx_fed_page_flexform_sub';

$doktypes = '0,1,4';
$doktypesOptionValue = \FluidTYPO3\Flux\Utility\ExtensionConfigurationUtility::getOption(\FluidTYPO3\Flux\Utility\ExtensionConfigurationUtility::OPTION_DOKTYPES);
Expand Down

0 comments on commit 3f7eedf

Please sign in to comment.