camptocamp / ngeo

Library combining OpenLayers and AngularJS
https://camptocamp.github.io/ngeo/master/examples
MIT License
135 stars 87 forks source link

findGroupByName searches only two levels deep #3041

Closed pfirpfel closed 6 years ago

pfirpfel commented 6 years ago

Steps to reproduce

  1. Go to the demo

  2. Search for "Unterhaltung" (loisirs in french) and try to add the sub theme: fts_subtheme

Response from fulltext search: fts_subtheme_chrome

Expected

Theme gets added

Actual result

Nothing happens

pfirpfel commented 6 years ago

After some debugging I discovered, that "Unterhaltung" is a child of a child. gmf.Themes.findGroupByName, which will be called to retrieve the group by name, only checks the first level of children.

fredj commented 6 years ago

with master, no error in the console but nothing happens

fredj commented 6 years ago

fixed with #3052