Project

General

Profile

Actions

Bug #73717

open

validation results for child properties per property

Added by Pascal Dürsteler about 8 years ago. Updated over 4 years ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2016-02-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

When you have a model "pizza" with a property "toppings" being an object storage containing multiple "topping" objects, it is not possible to display validation results for each toppings' properties.

According to several sources (e.g. #70634), the way of building a form for a pizza with multiple toppings would look like this in fluid:

<f:for each="{pizza.toppings}" as="topping" iteration="i">
    <f:form.textfield property="toppings.{i.index}.title" />
    <!-- ... -->
</f:for>

However, validation results fetched via f:form.validationResults don't have the same index. Outputting validationResults.flattenedErrors yields something like this:

array(
    pizza.toppings.0000000027a19482000000016f491783.title => array
)

As far as I know for now, only by using functionality provided by the core, it is not possible to display errors for said properties. If there is a way, I'd be happy to see a clean, nice, and simple way. Otherwise, I consider this a bug or a missing feature, as I feel a framework should provide such functionality.

Assigning this to Category: Fluid for now, as it mainly depends on f:form.validationResults. Adding Claus as watcher as he provided a very explanative answer on #70634, which is marginally related to this issue.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #70634: Proper view helper for generating nested / child recordsRejected2015-10-12

Actions
Actions

Also available in: Atom PDF