[TYPO3-dev] TCA / sys_file_reference / title default value
Frans Saris
franssaris at gmail.com
Fri Jan 3 22:56:26 CET 2014
Hi,
after some debugging this night I found the problem and after that I found
a already pending patch in gerrit that fixes this.
https://review.typo3.org/#/c/25422/
gr.
Frans
2013/10/24 Philipp <philippwrann at gmx.at>
> When adding this line:
> $trData->defVals['sys_file_reference']['title'] = NULL;
>
> in InlineElement::getRecord
>
> the field is disabled by default like i want it to be.
>
> In the DataPreprocessor there is a property called defVals, that has the
> following comment above:
> // Can be set with an array of default values for tables. First key is
> table name, second level keys are field names. Originally this was a GLOBAL
> array used internally.
>
> That never seems to happen in the ajax request. Building or loading of
> that map should happen in a init-method in that object, so its assured to
> be present whenever the DataPreprocessor is called using the objectManager.
>
> Of course it works from the second build because no def-values are used,
> the data is directly selected from the database.
>
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
>
More information about the TYPO3-dev
mailing list