We're updating the issue view to help you get more done. 

Add new language uses the search text instead of the selected locale

Description

When a search is typed in the "Add New Language" dialog, then a locale is selected from the suggestion list, the dialog shows all the details of the selected locale, but when saved the locale code and other details are just based on whatever was typed before selecting the locale.

To reproduce:

1. Sign in as admin and navigate to languages page
2. In "..." menu, select "Add New Language"
3. Type "a" into the search field, wait for results
4. Click on "af Afrikaans", note that name, language code and native name all have appropriate values
5. Click "Save"

Actual results:
Language list does not show "Afrikaans", instead a language named "a" is shown, with language code "a" and native name "a".

Expected results:
Afrikaans is added with correct code, name and native name.

Environment

None

Status

Assignee

Alex Eng

Reporter

David Mason

Labels

Components

Sprint

None

Fix versions

Affects versions

server-3.8.0

Priority

High