Project

General

Profile

Actions

Bug #99034

open

In a Flexform with selectCheckBox and a default value when saving, the default values are always applied

Added by Sybille Peters over 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2022-11-09
Due date:
% Done:

0%

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

Description

So, for example, you have 2 checkboxes with value 'a' and value 'b' and a default of 'a'. Then you unset them all and save. After saving, 'a' is set again.

animated gif

Code snippet

<settings.showColumns>
  <TCEforms>
  <label>selectCheckBox with default=room</label>
  <config>
    <type>select</type>
    <renderType>selectCheckBox</renderType>
    <items>
      <numIndex index="0">
        <numIndex index="0">room</numIndex>
        <numIndex index="1">room</numIndex>
      </numIndex>
      <numIndex index="1">
        <numIndex index="0">available</numIndex>
        <numIndex index="1">available</numIndex>
      </numIndex>
    </items>
    <default>room</default>
  </config>
  </TCEforms>
</settings.showColumns>

Reproduce

Versions

This is reproducible with

  • TYPO3 11.5.16-dev (latest commit 74b597cb507fda6f8c4214a9d203541df614597f, September 12, 2022)
  • TYPO3 11.5.18 official release

Files

flexform1.gif (206 KB) flexform1.gif Sybille Peters, 2022-11-09 15:59

No data to display

Actions

Also available in: Atom PDF