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 #1

Updated by Georg Ringer about 7 years ago

  • Description updated (diff)
Actions #2

Updated by Oliver Hader about 7 years ago

Hm... the recent change in powermail defined the fields field to only be displayed in the default language. Hence, calling inlineLocalizeSynchronize command (which is not related to the new allowLanguageSynchronize feature in CMS 8 by the way) should contain a valid value for the target language property in the request

Actions #3

Updated by Mona Muzaffar almost 7 years ago

  • Related to Bug #80855: IRRE: "Localize all records" and "Synchronize with default language" not working anymore added
Actions #4

Updated by Susanne Moog almost 7 years ago

  • Status changed from Accepted to Needs Feedback

should be fixed by https://review.typo3.org/#/c/52543/ can you check?

Actions #5

Updated by Georg Ringer almost 7 years ago

  • Status changed from Needs Feedback to Resolved
Actions #6

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF