roundcube / roundcubemail

The Roundcube Webmail suite
https://roundcube.net
GNU General Public License v3.0
5.57k stars 1.6k forks source link

csv2vard: store labels by key not value #9394

Closed johndoh closed 1 month ago

johndoh commented 1 month ago

fixes #9393

In csv2vcard the labels are currently stored by their value e.g. "First Name" but in pt_BR/csv2vcard.inc there are labels with the same value e.g. $map['company'] = "Empresa"; and $map['work_company'] = "Empresa"; and when the array is flipped these values are lost due to the duplicate key names they create. This is a mistake in the pt_BR translation but it should not cause interface issues. By only flipping the array to do the header mapping no labels are lost for building the interface.