huridocs / uwazi

Uwazi is a web-based, open-source solution for building and sharing document collections
http://www.uwazi.io
MIT License
225 stars 80 forks source link

Thesaurus label case error on csv import #6942

Closed LaszloKecskes closed 3 days ago

LaszloKecskes commented 3 days ago

The csv import throws an error on importing new elements for existing groups with an upper case letter in their names. The error is caused by the thesauri.appendValues function using the the original label instead of the normalized value in one comparison.

To reproduce: 1, Create a thesaurus that has a group name with capital letter(s). Group: A 2, Create a template that uses this for a select property. 3, Try to import an entity through csv, that has a new value in this thesaurus, in this group: title;select imported1;Group::B

LaszloKecskes commented 3 days ago

Closing via hotfix to prod.