Skip to content

GET response: Check if entity is translatable

Issue US-594:

In gallery patterns, existing galleries can only be selected if they were created on the same language as the current page.

The problem is that the gallery entity is usually not translatable, but still the translated variant of it is retrieved.
e.g: /fr/pagedesigner/element/[id]?_format=hal_json
This will give a 422 response, since the entity does not exist in the requested language.

Solution In the GET response, check if the entity is translatable before loading the translation.

Merge request reports