sulu / SuluArticleBundle

Bundle for managing localized content-rich entities like blog-posts in the Sulu content management system
MIT License
52 stars 77 forks source link

Index correct ghost content when deleting the locale of an article #652

Closed wachterjohannes closed 6 months ago

wachterjohannes commented 6 months ago
Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets fixes #issuenum
Related issues/PRs #issuenum
License MIT

What's in this PR?

When deleting a locale of an article the behaviour was wrong which locale is the "ghosted" locale. This should be fixed with this PR.

This PR uses now an existing one. If the default one is available this one will be used else another one will be used.

Additionally this PR fixes the problem when a locale was remove which is the ghosted locale of another page.

Why?

Without this fix ALWAYS the default locale was the ghosted locale. Also if this locale was removed or another one but the default one was not created.

To Do