Bug #69183
closed
Story #69712: Further FormEngine development
Respect TCA option 'columnsOverrides' for server side field evaluations
Added by Sascha Egerer almost 9 years ago.
Updated over 4 years ago.
Category:
DataHandler aka TCEmain
Sprint Focus:
Remote Sprint
Description
With the TCA value columnsOverrides
field configurations can be overwritten. This works for the Formengine stuff.
The field evaluation with the eval
option can also be overwritten. But only the client side evaluation respects this setting as this is renderd trough the form enginge.
The server side evaluations are not respected as the `columnsOverrides` is not merged there.
This works:
$GLOBALS['TCA']['tt_content']['types']['text']['columnsOverrides'] = array(
'header_link' => array(
'config' => array(
'eval' => 'trim,required',
),
)
);
This does not work (evaluating the the value is an email address which is done on the server side):
$GLOBALS['TCA']['tt_content']['types']['text']['columnsOverrides'] = array(
'header_link' => array(
'config' => array(
'eval' => 'trim,required,email',
),
)
);
-1.
Please do not implement this now: the columnsOverrides is not handled in dataHandler systematically and it is also documented that columnsOverrides only works for FormEngine related stuff.
Please keep this situation until DataHandler was refactored.
- 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 http://review.typo3.org/42762
- Status changed from Under Review to New
@Christian
Would you give that -1 to the patch? I had it already done and just pushed it. So if you don't want it then please add you comments to the patch. Thanks.
- Status changed from New to Under Review
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42762
Same problem at several other places (as I've expected it). So everything that is done on server side currently does not respect the setting.
Doing something like
$GLOBALS['TCA']['tt_content']['types']['foo_base_contact_banner']['columnsOverrides'] = array(
'records' => array(
'config' => array(
'allowed' => 'my_custom_table',
),
)
);
works in the Form but the record is never saved as it is evaluated on the server and then thrown away.
- Status changed from Under Review to On Hold
- Target version changed from 7.4 (Backend) to 7 LTS
Waiting for DataHandler refactoring
- Target version changed from 7 LTS to 8 LTS
unlikely to be completely refactored until Nov 10th ;-)
- Parent task set to #69712
- Target version changed from 8 LTS to Candidate for patchlevel
- Status changed from On Hold to Needs Feedback
- Assignee changed from Sascha Egerer to Christian Kuhn
Hey Lolli,
could you state the opinion or the idea to solve (or not to solve) this issue?
- Assignee deleted (
Christian Kuhn)
- Category changed from FormEngine aka TCEforms to DataHandler aka TCEmain
- Status changed from Needs Feedback to On Hold
- Target version changed from Candidate for patchlevel to Candidate for Major Version
- Related to Bug #87364: Slug generation wizard ignores columnsOverrides of TCA added
- Status changed from On Hold to Resolved
This has been resolved with #87364
- Status changed from Resolved to Closed
Also available in: Atom
PDF