Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Synthese] Attribut Taxhub dans la recherche taxonomique avancées ne fonctionne pas en mode multiselect #2767

Closed
mvergez opened this issue Oct 25, 2023 · 1 comment
Labels

Comments

@mvergez
Copy link
Contributor

mvergez commented Oct 25, 2023

Version
2.13.3

Description du bug
Quand on ajoute un attribut taxhub via la configuration :

[SYNTHESE]
ID_ATTRIBUT_TAXHUB = [102, 103]

Et que ces attributs taxhub (localisés dans taxonomie.bib_attributs) ont un type_widget : multiselect, l'affichage ne fonctionne pas :
image

Comportement attendu
Il faudrait que les labels s'affichent

Comment reproduire
Créer un attribut taxhub dans la table taxonomie.bib_attributs exemple :
102 atlas_milieu Milieu {"values":["Forêt","Prairie","eau"]} false Habitat, milieu principal du taxon text multiselect 1 3

Solution

Supprimer ces lignes :

if (attr['type_widget'] == 'multiselect') {
attr['values'] = attr['values'].map((val) => {
return { value: val };
});
}

Je ferai une PR dans ce sens

@camillemonchicourt
Copy link
Member

Corrigé dans la 2.13.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants