1 merge request!728REDMINE_ISSUE-19251 | Listes de valeurs pré-enr. - Vérification que l'option existe bien dans la liste ne fonctionne pas dans le cas où j'ai un string
// query existing prerecorded list values (with label to limit results in response, there could be many) and escape special characters, since single quote causes error in backend
if (typeoffieldInFeature==='string'&&fieldInFeature.charAt(0)==='{'){// data from CSV come as string, if it doesn't start with bracket then it should not be converted to an object and stay as a string, since the structure has been simplified: https://redmine.neogeo.fr/issues/18740
if (typeoffieldInFeature==='string'&&fieldInFeature.charAt(0)==='['){// data from CSV come as string, if it doesn't start with bracket then there's no need to convert it to an array
this.DISPLAY_MESSAGE({comment:`La valeur [ ${fieldInFeature.label} ] n'a pas pu être vérifiée pour l'import du signalement [${feature.properties.title}]`});
}catch (e){
console.error(e);
this.DISPLAY_MESSAGE({comment:`La valeur [ ${fieldInFeature.label} ] n'a pas pu être vérifiée pour l'import du signalement [${properties.title}]`});