Issue Bug Closed

#76629Assigning translated categories doesn't work

nurbs999 no-lastname-given 06/14/16, 16:41 updated 05/14/17, 21:03

Description

Assigning categories to pages doesn’t save the translation of the category.

Steps to reproduce:
Create new page language
Create sys_folder for categories
Create new category “cat_01“
Create translation for category “cat_01” => “cat_01_de”

At this point the database has two categories with IDs ‘1’ and ‘2’ in table ‘sys_category’

Create new page “category_index“
Assign “cat_01” to page “category_index”

At this point the database has only one entry in ‘sys_category_record_mm’ for the default language. But it should have both relations. One for ‘cat_01’ and one for ‘cat_01_de’ since this is just a translation.

Now, if you try to get the translated category via typoscript like this:

table = sys_category
select {
languageField = sys_language_uid
pidInList = 2
join = sys_category_record_mm ON sys_category_record_mm.uid_local = sys_category.uid
where.data = field:uid
where.intval = 1
where.wrap = sys_category_record_mm.uid_foreign=|
orderBy = sys_category.sorting
}

it works for the default language, but you get zero results for the translation.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.