Project

General

Profile

Actions

Bug #91291

open

FlexForm - Value of field is string instead of array

Added by Markus Kugler almost 4 years ago. Updated over 2 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-05-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.2
Tags:
flexforms, itemsprocfunc
Complexity:
Is Regression:
Sprint Focus:

Description

Hello everyone,

I'm currently working on a Extension with FlexForms and stumbled onto something.

Issue:
Accessing $config['row']['settings.*'] of other flexform settings in itemsProcFunc results in a string instead of an array while using a display condition in some cases.

Description:
I created a FlexForm with two selectSingleFields Board and List. Both fields get their values from itemsProcFunc. The List-Select relies on a displayCond that requires Board to be set. Board has an onChange reload property to reload the FlexForm that then shows List.
Code here:
https://github.com/Crontis/trello_integration/blob/master/Configuration/FlexForms/ShowCardsOnList.xml

In the List-ItemsProcFunc I access the value of Board. In some cases, like during the creation of a new content element with this plugin and flexform, the value of Board equals a string. In other cases, like editing an existing plugin, the value of Board equals an array with a single value.
Code here:
https://github.com/Crontis/trello_integration/blob/master/Classes/Backend/ItemsProcFunc.php

This seems to be an issue with the differentiation of columns into new or edit in FormDataProvider\TcaFlexProcess. In some occasions List will be an editColumn where Board is a newColumn. In this case Board will not be resolved at the time List is interpreted, which results in a string instead of an array.

I'm not too familiar with the handling of FlexForms but this does seem like a bug?


Files

Actions #1

Updated by Pierrick Caillon over 2 years ago

  • File FlexFormService.patch added
  • File scratch.xml added
  • Subject changed from FlexForm - Value of field is string instead of array to FlexForm - Value of container field is string instead of array
  • Complexity set to no-brainer
Actions #2

Updated by Pierrick Caillon over 2 years ago

  • File deleted (FlexFormService.patch)
Actions #3

Updated by Pierrick Caillon over 2 years ago

  • File deleted (scratch.xml)
Actions #4

Updated by Pierrick Caillon over 2 years ago

  • Subject changed from FlexForm - Value of container field is string instead of array to FlexForm - Value of field is string instead of array
  • Complexity deleted (no-brainer)

After re-reading the subject it does not look like the exact same issue I encoutered. I create a new ticket for my issue.

Actions

Also available in: Atom PDF