From 8b4f24de24c1dbce6f5466104c1f9622c8853701 Mon Sep 17 00:00:00 2001 From: Jbrieuc LP <15981479+jbrieuclp@users.noreply.github.com> Date: Mon, 29 Jan 2024 12:15:18 +0100 Subject: [PATCH] =?UTF-8?q?modif=20route=20taxons=5Fautocomplete=20pour=20?= =?UTF-8?q?faire=20les=20synonymes=20saisies=20+=20le=20nom=20valide=20ass?= =?UTF-8?q?oci=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/geonature/core/gn_synthese/routes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/geonature/core/gn_synthese/routes.py b/backend/geonature/core/gn_synthese/routes.py index ed313f5c90..1f6e8e9514 100644 --- a/backend/geonature/core/gn_synthese/routes.py +++ b/backend/geonature/core/gn_synthese/routes.py @@ -972,7 +972,8 @@ def get_autocomplete_taxons_synthese(): ), ) .distinct() - .join(Synthese, Synthese.cd_nom == VMTaxrefListForautocomplete.cd_nom) + .join(Taxref, Taxref.cd_ref == VMTaxrefListForautocomplete.cd_ref) + .join(Synthese, Synthese.cd_nom == Taxref.cd_nom) ) search_name = search_name.replace(" ", "%") query = query.where(