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.
After this change, only localizations of the active portal are returned if you have multiple portals.
Also, the country key was added to match the output of pages.
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.
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.
After this change, only localizations of the active portal are returned if you have multiple portals.
Also, the
country
key was added to match the output of pages.