Project

General

Profile

Actions

Bug #79822

closed

UserFunc in TCA displayCond

Added by Stephan Ederer about 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
Start date:
2017-02-15
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Stabilization Sprint

Description

Upgraded TYPO3 from 8.5.1 => 8.6.0.

On 8.6.0 user functions in TCA displayCond doesn't work.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #79981: Bug in TCA displayCond - colons in the operand are ignoredClosed2017-02-23

Actions
Actions #1

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.

Actions #2

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;
    }
}

Actions #3

Updated by Christian Kuhn about 7 years ago

  • Status changed from Needs Feedback to New
Actions #4

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

Actions #5

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

Actions #6

Updated by Anonymous about 7 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF