Skip to content
Snippets Groups Projects
Commit 36f1a701 authored by Thorben Nissen's avatar Thorben Nissen Committed by Christian Kuhn
Browse files

[BUGFIX] TCA selectTree ajax must not calculate display conditions

Opening a record with a FormEngine field type='select' and
renderType='selectTree' just renders boilerplate HTML that triggers
an ajax request to fetch actual tree node data for each field.
The server side ajax controller reduces the TCA to contain only the field
the items should be calculated for to reduce parse times.
In flex form context, if now that tree field has a FIELD display condition,
the standard data group 'tcaDatabaseRecord' which calls 'all' providers fails,
since it can't find a database value of the condition target.

Solution is to create an own data provider group for this 'fetch tree data'
ajax context: This group contains only providers needed by the
'TcaSelectTreeItems' provider and ignores everything else, most importantly
the EvaluateDisplayConditions provider. Leaving out a series of other
not needed data providers gives an additional performance improvement
in this context.

Resolves: #79657
Releases: master
Change-Id: I29bdd659d5f5ee28f8ae017c47df0233abefd6f5
Reviewed-on: https://review.typo3.org/51574


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent c66f76f7
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment