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

Use escaped label as id for querygrid, because id are not unique #3622

Merged
merged 2 commits into from Mar 6, 2018

Conversation

ger-benjamin
Copy link
Member

FIX: GEO-1022

The id in the querysources is not always unique (not in case of multiple server layers in one ol layer). And the querygrid already use label as ID to be able to merge the layers and because that make no sens to have multiple tabs with the same name, so to be based on id is a bad idea. Having a mix of id/label is also a bad idea.

Now all is based on labels. Note that we must escape the label to be able to use and select it as class or id (and avoid to fall again in this issue: #3273)

@@ -212,6 +212,7 @@ gmf.DisplayquerygridController = function($injector, $scope, ngeoQueryResult, ng

/**
* @type {!gmfx.GridMergeTabs}
* @export
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note: this fixes #3508

@ger-benjamin ger-benjamin merged commit fdcdef9 into 2.2 Mar 6, 2018
@ger-benjamin ger-benjamin deleted the fix_displayquerygrid_display branch March 6, 2018 12:36
@ger-benjamin ger-benjamin self-assigned this Mar 6, 2018
@ger-benjamin ger-benjamin added this to the 2.2 milestone Mar 6, 2018
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

3 participants