Project

General

Profile

Actions

Bug #99153

open

Discrepancy between behaviour and documentation for "eval" property in "select" fields in TCA

Added by Sybille Peters over 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Documentation
Target version:
-
Start date:
2022-11-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
backend, tca, formengine, eval
Complexity:
Is Regression:
Sprint Focus:

Description

In TYPO3 v11, the code below will make a selectSingle a required field, meaning you cannot save and a modal pops up with "The fields marked with an exclamation mark are not yet correctly filled in. Please complete them properly."

But, in the documentation "eval" is not a property, for example for selectSingle.

Possibly, the documentation is incorrect or it works unintentionally. There is also issue #60908, but I think it makes sense to first clarify if we should document "eval" for the select fields or not.

I looked in the source SelectSingleElement. There, AbstractNode::getValidationDataAsJsonString is called which handles eval.

So, by looking at the code, I assume, eval is handled and should be handled.

<settings.test>
  <TCEforms>
    <label>test</label>
      <config>
        <type>select</type>
        <size>5</size>
        <renderType>selectSingle</renderType>
        <itemsProcFunc>... some funciton</itemsProcFunc>
        <default></default>
        <eval>required</eval>
        ...


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Feature #60908: Provide Evaluation of TCA select fieldsNew2014-08-12

Actions
Actions #1

Updated by Sybille Peters over 1 year ago

  • Related to Feature #60908: Provide Evaluation of TCA select fields added
Actions

Also available in: Atom PDF