Skip to content

Commit

Permalink
Replace all placeholder keys in QgisSearch
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Jun 24, 2024
1 parent 3058ad9 commit 1a84c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/SearchProviders.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class QgisSearch {
};
Object.keys(filter).forEach(layer => {
Object.entries(values).forEach(([key, value]) => {
filter[layer] = filter[layer].replace(`$${key}$`, value.replace("'", "\\'"));
filter[layer] = filter[layer].replaceAll(`$${key}$`, value.replace("'", "\\'"));
});
params.LAYERS.push(layer);
params.FILTER.push(layer + ":" + filter[layer]);
Expand Down

0 comments on commit 1a84c7f

Please sign in to comment.