Skip to content

Commit

Permalink
fix(Controls): filtre section toujours en majuscule
Browse files Browse the repository at this point in the history
Le service est case Sensitive, on passe le paramètre section entré côté client en majuscules
  • Loading branch information
elias75015 committed May 28, 2024
1 parent 01ba4d2 commit c88357a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Leaflet/Controls/SearchEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,10 @@ var SearchEngine = L.Control.extend(/** @lends L.geoportalControl.SearchEngine.p
for (var i = 0; i < data.length; i++) {
var filter = data[i];
if (filter.value) {
// On passe la section en majuscule car le service est caseSensitive
if (filter.key === "section") {
filter.value = filter.value.toUpperCase();
}
_filterOptions[filter.key] = filter.value;
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/OpenLayers/Controls/SearchEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -1463,6 +1463,9 @@ var SearchEngine = (function (Control) {
for (var i = 0; i < data.length; i++) {
var filter = data[i];
if (filter.value) {
if (filter.key === "section") {
filter.value = filter.value.toUpperCase();
}
_filterOptions[filter.key] = filter.value;
}
}
Expand Down

0 comments on commit c88357a

Please sign in to comment.