From f8a14ce8e30eec12f81242484291b3742a0f617e Mon Sep 17 00:00:00 2001 From: elias couppe Date: Thu, 16 May 2024 14:34:13 +0200 Subject: [PATCH] =?UTF-8?q?fix(ll:Controls):=20fix=20recherche=20avanc?= =?UTF-8?q?=C3=A9e=20param=20query=20mal=20test=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DRAFT_CHANGELOG.md | 3 ++- src/Leaflet/Controls/SearchEngine.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/DRAFT_CHANGELOG.md b/DRAFT_CHANGELOG.md index a1a3016b8..fe848391b 100644 --- a/DRAFT_CHANGELOG.md +++ b/DRAFT_CHANGELOG.md @@ -45,7 +45,8 @@ - widget itineraire utilise ressource bdtopo-valhalla dans le cas d'un itinéraire pieton en mode fastest (92439bc421cc5f6ee1f10e069f2aa468e2b971b6) - Correction du logger par définiton de la variable process (e0e3b9b5ad3e1f8c92086891564f04f792e24280) - + - recherche avancée : correction du test sur le param query + * [Security] --- diff --git a/src/Leaflet/Controls/SearchEngine.js b/src/Leaflet/Controls/SearchEngine.js index efa69cfe2..8686314df 100644 --- a/src/Leaflet/Controls/SearchEngine.js +++ b/src/Leaflet/Controls/SearchEngine.js @@ -534,7 +534,7 @@ var SearchEngine = L.Control.extend(/** @lends L.geoportalControl.SearchEngine.p } // on ne fait pas de requête si la parametre 'text' est vide ! - if (!settings.query) { + if (settings.query === null) { return; }