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

Fix use of the correct localizations with multiple portals #636

Closed mario-fehr closed 11 months ago

mario-fehr commented 1 year ago

Use the correct localizations of the portal if multiple portals are configured and ´country´ key to the localizations array to match it with the other implementations in sulu.

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets fixes #issuenum
Related issues/PRs #issuenum
License MIT

What's in this PR?

This fixes an issue with localizations when you split them in multiple portals.

Why?

Before this change all localizations of a webspace were returned even if you had separated them in multiple portals.

image

After this change, only localizations of the active portal are returned if you have multiple portals.

image

Also, the country key was added to match the output of pages.