Bug #91291

FlexForm - Value of field is string instead of array

Added by Markus Kugler over 1 year ago. Updated 3 months 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

#1

Updated by Pierrick Caillon 3 months 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
#2

Updated by Pierrick Caillon 3 months ago

  • File deleted (FlexFormService.patch)
#3

Updated by Pierrick Caillon 3 months ago

  • File deleted (scratch.xml)
#4

Updated by Pierrick Caillon 3 months 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.

Also available in: Atom PDF