[TYPO3-dev] label_userFunc broken with TYPO3 7.1.0 ?

Thomas Hucke thucke at web.de
Tue Mar 24 21:03:13 CET 2015


Hi,

I'm starting testing my extension th_rating using version 7.1.0.
Unfortunately while it is running smoothly with little modifications in 
7.0.2 i'm running into issues in the newest.

First two issues I'd like to discuss here:

1.
I'm using 'label_userFunc' in TCA to adjust the row naming in the backend. 
In 7.0.2 all is fine. In 7.1.0 only the uid of the row is being displayed as 
long as I set 'label' => uid.
>From my understanding that's against the documented behaviour:
'The result of this function overrules the label, label_alt or 
label_alt_force settings.'


2.
I already experienced this issue in version 7.0.2 and I also filed a bug 
report for that (https://forge.typo3.org/issues/64046).
Now I take the chance to post it in this list as I also ran into it in 
version 7.1.0 - maybe someone has an idea.
Perhaps the issue could be connected to the fact that I'm explicitly using 
my validators in the controller. They're injected as usual and depending on 
either given POST parameters or TS settings they are actively called, eg.

    if ($this->stepconfValidator->isValid($stepconf)) { .......

Now it seems to me that the validators are prevented to work properly due to 
a missing initialization of the result object of the parent 
AbstractValidator.
Every time i'm running into 'Fatal error: Call to a member function 
addError() on a non-object ...' when the method 'addError' calls
    $this->result->addError(new 
\TYPO3\CMS\Extbase\Validation\Error($message, $code, $arguments, $title));

The only solution I see would be adding
    $this->result = new \TYPO3\CMS\Extbase\Error\Result();
to the constructor of the AbstractValidator.


Any comments / hints /suggestions for either one or both issues?

Thanks a lot
Thomas




More information about the TYPO3-dev mailing list