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

Fix apply filter #4691

Merged
merged 1 commit into from Feb 27, 2019
Merged

Fix apply filter #4691

merged 1 commit into from Feb 27, 2019

Conversation

adube
Copy link
Contributor

@adube adube commented Feb 26, 2019

This patch fixes the filters component, more specifically when applying a filter.

The bug why it wasn't working anymore is simply because the OpenLayers getUid utils method used to return numbers. Now, it returns strings. There were a lot of places in ngeo/gmf that this value was used as number and was automatically changed as string, but that caused errors. Some of them were reverted like what they were before: numbers.

However, this caused a simple logic issue with the filter while checking onto what data source to apply it. Casting it to string then does the trick.

@adube adube changed the title [WIP] Fix apply filter Fix apply filter Feb 27, 2019
@adube adube merged commit f1c0500 into camptocamp:master Feb 27, 2019
@adube adube deleted the 798-fix-apply-filter branch February 27, 2019 13:28
@sbrunner sbrunner added this to the 2.4 milestone Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants