Check for empty supported languages.

Created on 8 January 2024, 12 months ago
Updated 16 January 2024, 11 months ago

Problem/Motivation

While checking for provider_supported_langs isset is used. Problem is that Lionbridge returns empty array as supported languages. Isset in that case returns TRUE and tries to check if current translation is allowed.

Steps to reproduce

Have a user without supported languages in Lionbridge and try to submit job request. Error will be generated as requested capabilities do not match.

Proposed resolution

Use empty() instead of !isset() as isset based on current api returns TRUE always.

🐛 Bug report
Status

Fixed

Version

2.27

Component

Code

Created by

🇱🇻Latvia guncha25

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024