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

Import from CollectiveAccess do not take the locale that set in import settings

Description

Scenario:
1. Runing import from CollectiveAccess. in the import map set Setting locale en_US.
If there is no Preferred Label lang en_US in the source it is take the first data that came back.

2. Runing import from CollectiveAccess.
in the import map set Setting locale he_IL. The user interface locale is en_US.
It is take Preferred Label or attributes with lang en_US from source and add it as lang he_IL.

Where did it come from:
/app/lib/ca/Import/DataReaders/CollectiveAccessDataReader.php line 181
$ va_data ['attributes'] = caExtractValuesByUserLocale ($ va_data ['attributes']);
$ va_tmp = caExtractValuesByUserLocale (array ($ va_data ['preferred_labels']));

This should be taken get the data by the language that defined in the import settings and not by the user locale. If the source not in including data in the import language it should return Null

Environment

None

Assignee

User known

Reporter

avihay halevi

Labels

Components

Affects versions

Priority

Major
Configure