Project

General

Profile

Actions

Bug #80364

closed

Localizing inline records fails

Added by Georg Ringer about 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Localization
Target version:
-
Start date:
2017-03-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

Localizing inline records fails.

How to reproduce
  1. Use latest master
  2. clone https://github.com/einpraegsam/powermail branch develop
  3. create a new form + pages +fields
  4. translate the page
  5. translate the form
  6. edit default form and add a new field record
  7. switch to translated form record
  8. try to translate the field with the localize button

What fails

I don't exactly went wrong but in FormInlineAjaxController::synchronizeLocalizeAction the $parentLanguage is now 0 even though it should be of course the uid of the sys_language of the translated page record.

Array
(
    [tx_powermail_domain_model_page] => Array
        (
            [4] => Array
                (
                    [inlineLocalizeSynchronize] => Array
                        (
                            [field] => fields
                            [language] => 0
                            [action] => localize
                        )

                )

        )
)

what I don't get is why the language is 0

Array
(
    [command] => edit
    [tableName] => tx_powermail_domain_model_page
    [vanillaUid] => 4
    [returnUrl] => /typo3/index.php?ajaxID=%2Fajax%2Frecord%2Finline%2Fsynchronizelocalize&ajaxToken=224bccb4da62dbab8eacf816189bf37eb0adc8b5
    [recordTitle] => 
    [parentPageRow] => 
    [neighborRow] => 
    [databaseRow] => Array
        (
            [uid] => 4
            [sys_language_uid] => Array
                (
                    [0] => 0
                )
...

in the DB it looks fine
select uid,sys_language_uid,l10n_parent from tx_powermail_domain_model_page where uid=4;

uid,sys_language_uid,l10n_parent
4,3,3

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #80855: IRRE: "Localize all records" and "Synchronize with default language" not working anymoreClosed2017-04-16

Actions
Actions

Also available in: Atom PDF