diff options
-rw-r--r-- | install/ui/src/freeipa/Application_controller.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/install/ui/src/freeipa/Application_controller.js b/install/ui/src/freeipa/Application_controller.js index 4bf76f8f5..5877ed63e 100644 --- a/install/ui/src/freeipa/Application_controller.js +++ b/install/ui/src/freeipa/Application_controller.js @@ -365,16 +365,16 @@ define([ items = this.menu.query({ entity: facet.entity.name, facet: facet.name }); } - // normal facets - if (!items.total) { - items = this.menu.query({ facet: facet.name }); - } - // entity fallback if (!items.total && facet.entity) { items = this.menu.query({ entity: facet.entity.name }); } + // normal facets + if (!items.total) { + items = this.menu.query({ facet: facet.name }); + } + // fallback: Top level item if (!items.total) { items = this.menu.query({ parent: null }); |