Language configuration create wrong to Original Language at group-type

Created on 15 April 2024, about 1 year ago
Updated 4 June 2024, 11 months ago

Problem/Motivation

Some installation has a record at config table to original language and it's wrong, because original language will get data from the content and other language should have a record for they data.
When this record exists, the core never get the right data, because config by translation has priorioty to be selected.

Steps to reproduce

That error isn't happen for new installation, because probable it was a bug already fixed by community, so to reproduce we need to add a record directly to the database.
- Install social language
- Add a second language
- Go to Group Type configuration
- Add translate for the groups
- Go to the table config and look for the translate for each group 'group.type.group_id', change the group id, example: closed_group, flexible_group...
- Duplicate the record for second language and change the collection column to the original-language
- With that the code start to get that record created steo before instead of content

Proposed resolution

Create a hook-update to remove all extra record.

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Fixed

Version

12.3

Component

Code (back-end)

Created by

🇧🇷Brazil viniciusrp

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024