IBX-9277: Fixed error when translating User content with non-translatable fields - #114
Open
mateuszdebinski wants to merge 2 commits into
Open
IBX-9277: Fixed error when translating User content with non-translatable fields#114mateuszdebinski wants to merge 2 commits into
mateuszdebinski wants to merge 2 commits into
Conversation
ibexa-workflow-automation-1
Bot
requested review from
Steveb-p,
ViniTou,
alongosz,
barw4,
bnowak,
ciastektk,
konradoboza,
mikadamczyk,
tbialcz and
wiewiurdp
and removed request for
a team
August 25, 2026 07:45
Switches backend-ci.yaml to the shared ibexa/gh-workflows/actions/composer-install action (as ibexa/user and ibexa/core already do) instead of the local copy, which lacks the composer-audit-ignore step. Composer 2.9 now blocks installing packages affected by known security advisories by default, and every twig/twig 3.x release compatible with PHP 7.4 has an open advisory, which is why the PHP 7.4 job started failing to resolve dependencies (via ibexa/user's twig/twig ^3.0 requirement).
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Description:
Translating a User's content into a non-main language threw an error because the user_account field (non-translatable) wasn't available under that language, and non-translatable fields were still being written during translation.
Fixed by falling back to the main-language field value when loading/mapping user data, skipping non-translatable fields on translation submit, disabling the user account form field for non-main-language translations, and adding a UserTranslationSecureListener that force-creates the version in the correct language on publish to keep the User content record consistent.
For QA:
Documentation: