Actions
Bug #80364
closedLocalizing inline records fails
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- Use latest master
- clone https://github.com/einpraegsam/powermail branch develop
- create a new form + pages +fields
- translate the page
- translate the form
- edit default form and add a new field record
- switch to translated form record
- 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 fineselect uid,sys_language_uid,l10n_parent from tx_powermail_domain_model_page where uid=4;
uid,sys_language_uid,l10n_parent 4,3,3
Actions