Issue Bug Closed

#19925IFSUB and friends are ignoring the l18n_cfg field of the page record

Stefan Galinski 01/27/09, 16:21 updated 10/02/18, 12:27

Description

The l18n_cfg field is used to disable the default language record or any alternative language records which haven’t a page translation. At the first glance it seems to work like expected, because the expected page records are not visible in the menu. If we have a closer look at this part, we will find out that it’s badly ignored for the record states IFSUB and friends. This causes that a page record which has no visible sub pages is marked with the IFSUB state.

How to reproduce?

1) Create the following page structure:

- first parent page
– first sub page
- second parent page
– first sub page

2) Add a translation for each of the parent records
3) Set the l18n_cfg field to each of the sub pages (it’s not really important which setting or combintation)
4) Create a menu with IFSUB states applied
5) Test the result in the frontend
(issue imported from #M10285)

Reviews 6