Bug #80036

FAL translation with TCA maxitems set

Added by Kai Tallafus over 2 years ago. Updated 8 months ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Localization
Target version:
-
Start date:
2017-02-27
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
7.1
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:
Stabilization Sprint

Description

There is a bug with "Localize all records" and "Synchronize with original language".

In my TCA a have a FAL field with maxitems=1.
If I go to the translated record and hit one of those buttons, I get the error message "A maximum of 1 child records are allowed.".

However, after reloading the form, it seems the FAL record is translated.


Related issues

Related to TYPO3 Core - Bug #82880: Synchronize inline records triggers maxItemsError New 2017-10-29

History

#1 Updated by Kai Tallafus over 2 years ago

TYPO3 Version is 8.6.0

#2 Updated by Georg Ringer over 2 years ago

  • Category changed from FormEngine aka TCEforms to Localization
  • Status changed from New to Accepted
  • Is Regression changed from No to Yes
  • Sprint Focus set to Stabilization Sprint

#3 Updated by Alexander Stehlik about 2 years ago

I can confirm this bug. It also affects version 7.

#4 Updated by Stefan Herndler over 1 year ago

This is a JS error message and luckily does not affect the ajax request to localize any child records.
Affected line of code: typo3/sysext/backend/Resources/Public/JavaScript/jsfunc.inline.js:155

The script fires an error notification if the number of childs is equal or greater than the defined 'maxitems' of the TCA (only 'below max' is valid).

Typo3 version is 8.7.10

#5 Updated by Gerrit Code Review about 1 year ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57124

#6 Updated by Eduard Luft about 1 year ago

Gerrit Code Review wrote:

Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57124

Patch for TYPO3_7.6!

By removing the redundant isBelowMax condition in domAddNewRecord the localize or synchronize function will no longer throw a fake message for elements with the tca setting 'maxitems=1'. I removed the message output completely in domAddNewRecord, because the new button disappears if the 'maxitems' amount is reached. Also adding the 'isBelowMax' condition in synchronizeLocalizeRecords to prevent an fatal error by create a new element followed by the localize button.

#7 Updated by Peter Rauber 11 months ago

Possibly another ticket duplicates this one: https://forge.typo3.org/issues/82880
Seems a little more progress has been done there.

#8 Updated by Riccardo De Contardi 11 months ago

  • Related to Bug #82880: Synchronize inline records triggers maxItemsError added

#9 Updated by Wouter Wolters 8 months ago

  • Status changed from Under Review to New

Also available in: Atom PDF