-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.x]: Project config applying multi site loses relationships on localize relations enabled fields #12702
Comments
Hi, thanks for getting in touch. Can you please let me know if I understand the problem correctly?
|
Hi, thanks for getting back so quickly! Yes those steps are exactly right. I think so far this only happens on singles, which do not have any localization configuration apart from enabling it for the new site. |
Thanks for confirming and for the additional info. I can replicate it consistently, but only if I edit the entry type for the single after adding the second site and uncheck the ”Show the Title field”. Were you, by any chance doing that as well? |
Yes the title field is indeed unchecked for the single that is having this issue! Well found |
Craft 4.3.11 is out with this fix. |
What happened?
Description
Currently I am working on creating a multi language website from an existing single language website. I setup the fields to have localization enabled and I created a second language website. This all went fine. However when applying the project config to the production database the existing website gets lost (however does exist on the new website)
Trying again on a backup of the database but without the second site being added inside the project config does keep the existing relations on the existing language correctly.
Steps to reproduce
project-config/apply
Expected behavior
It to replicate the relationship data to the new website
Actual behavior
Relationship data is lost on the existing site
Craft CMS version
4.3.10
PHP version
8.1.11
Operating system and version
Docker Alpine
Database type and version
MySQL 8.0.28
Image driver and version
Imagick 3.7.0 (ImageMagick 7.1.0-50)
Installed plugins and versions
The text was updated successfully, but these errors were encountered: