CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #30105

Flexform-TS override wrong for checkbox fields

Added by Thomas Kowtsch over 1 year ago. Updated over 1 year ago.

Status:New Start date:2011-09-20
Priority:Should have Due date:
Assignee:- % Done:

0%

Category:General Handling Spent time: -
Target version:2.0.0
Votes: 0

Description

Von Anonymous - 17-7-2008
Inititally all fields in the flexform have an empty string as value. So if you do not touch it, you can change the value from TS. But once you set a checkbox its value becomes 1 and after unsetting it it becomes 0 - not ''! Now the value is not empty and you cannot turn on the feature (eg monthMakeMiniCal) via TS. So for a checkbox the comparsion in the controller should check for isZero and not for isEmpty.

Further thoughts: There might be a case were an editor needs to set an empty or a zero value in the FF. This will never work as in the FF there is no way to say that you want to use the default (defined by TS or somewhere else) or to set a value explicitely (even if the this value is empty or zero). Still I think it makes sense to change the behaviour for checkboxes the way described above. Alternatively all checkboxes could be turned into drop downs with values yes/no/default (1/0/-1). Default (1) would mean use TS value.
--------------------------

Von Martin Kutschker vor mehr als 3 Jahre aktualisiert

As most (but not all) FF drop downs have select options that default to the TS settings, I suggest to implement the idea to turn the checkboxes into drop downs and handle the new -1 value within the controller.

History

Updated by Thomas Kowtsch over 1 year ago

  • Category set to General Handling

Also available in: Atom PDF