Project

General

Profile

Actions

Bug #96995

closed

non-numeric value while the value diff is calculated

Added by Jan Delius over 2 years ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2022-02-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.


Files


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #97194: TypoError on translating a TCA type=check element with multiple itemsClosed2022-03-16

Actions
Actions #1

Updated by Oliver Hader over 2 years ago

  • Category set to Backend API
Actions #2

Updated by Jan Delius over 2 years ago

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.

Actions #3

Updated by Georg Ringer 5 months ago

  • Status changed from New to Closed

has been fixed with #97194

Actions #4

Updated by Georg Ringer 5 months ago

  • Is duplicate of Bug #97194: TypoError on translating a TCA type=check element with multiple items added
Actions

Also available in: Atom PDF