Issue Bug Closed

#96995non-numeric value while the value diff is calculated

Jan Delius 02/22/22, 14:04 updated 06/21/24, 08:25

Description

In the BackendUtility a “non-numeric value” error (or a warning) is thrown when trying to translate/edit the translation of a content item if it contains a TCA field of type “check” with multiple items. The reason seems to be that the class TYPO3\CMS\Backend\Form\FieldWizard\DefaultLanguageDifferences wants to access the field defaultLanguageDiffRow from $data (filled by the DataBaseLanguageRows FormDataProvider), but there are only empty strings in it.

Inside BackendUtility the $value is compared without checking for numeric value or casting it first.

clipboard-202202221503-xu2ps.png

clipboard-202202221504-sonvq.png

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Files 3

History 4

  1. Oliver Hader changed category 02/22/22, 16:26

  2. Jan Delius commented and changed attached backendutility-checkbox-castvalue.patch 02/23/22, 07:33

    If the value is casted to an int in the backend utility, the error no longer occurs. I don’t know if this is the right way or if it is better to check if it is a numeric value. With the patch in the attachment, the error no longer occurs.

  3. Georg Ringer commented and changed status New Closed 06/21/24, 08:25

    has been fixed with #97194

  4. Georg Ringer changed Duplicates #97194 06/21/24, 08:25