[SOLVED] Language fallback is not returning correct results

I have…

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [ X ] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

I noticed that when the values of a field are not set for a language which is not set as the master language and has a fallback to a language whose field does have a value, the API is returning a empty value.

In this case, I’m querying for an item in language ‘no’. The result value for field ‘display-name’ is empty
Item Id: 152ebdf0-d319-49fd-969a-1b5a1437f995

However, when I add ‘en’ to the language headers as well, then the result for ‘no’ is properly populated with the fallback value from the ‘en’ language

Is there something we’re missing or has there been updates lately to this?

Expected behavior

When requesting the content for a language which doesn’t have a value, the value of the fallback language should be returned.

Minimal reproduction of the problem

Environment

App Name: IvaGaming

  • [ ] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ X ] Cloud version

Version: Cloud

Browser:

  • [ ] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge
  • [ X ] Postman / API

Others:
N/A

I think I can verify that. In the code I filter the languages first and then resolve the fallback and of course your master is not available anymore after the filtering. I am sure I can deploy a fix today.

That would be much appreciated Sebastian as the websites in the optional languages are basically non functional.

This topic was automatically closed after 2 days. New replies are no longer allowed.