Bug #79822
closedUserFunc in TCA displayCond
100%
Description
Upgraded TYPO3 from 8.5.1 => 8.6.0.
On 8.6.0 user functions in TCA displayCond doesn't work.
Updated by Christian Kuhn about 7 years ago
- Status changed from New to Needs Feedback
- Target version changed from 8.6 to 8 LTS
- Sprint Focus set to Stabilization Sprint
not enough information.
is the 'userFunc' called at all, did the arguments change?
please provide an example userfunc and tca example.
Updated by Stephan Ederer about 7 years ago
- the userFunc arguments wasn't changed
- the 'userFunc' is not called (in 8.5.1 userFunc is called)
TCA/Overrides/pages.php:
<?php $pagesFields = array( 'title' => array( 'label' => 'title', 'exclude' => 1, 'config' => array( 'type' => 'check', 'default' => 0 ), 'displayCond' => 'USER:Ur\UrTemplate\UserFunctions\PageTS\FieldVisibility->isVisible' ), ); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages', $pagesFields); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes( 'pages', '--div--;TEST,title,' );
Classes/UserFunctions/PageTS/FieldVisibility.php:
<?php namespace Ur\UrTemplate\UserFunctions\PageTS; class FieldVisibility { // simple example, tests call of userFunc public function isVisible(array $conditionParameters) { return true; } }
Updated by Christian Kuhn about 7 years ago
- Status changed from Needs Feedback to New
Updated by Gerrit Code Review about 7 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51837
Updated by Gerrit Code Review about 7 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51837
Updated by Anonymous about 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 7d23f31086b70190af454f695923986a1db3b214.
Updated by Riccardo De Contardi over 6 years ago
- Status changed from Resolved to Closed