Skip to content

Commit

Permalink
Update menu tags using tag-count
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Belloy <[email protected]>
  • Loading branch information
pbe-axelor committed Oct 14, 2019
1 parent 03a8686 commit f3471e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public List<MenuItem> getMenus(boolean withTagsOnly) {
.append("SELECT self FROM MetaMenu self ")
.append("LEFT JOIN FETCH self.action ")
.append("LEFT JOIN FETCH self.parent ")
.append(withTagsOnly ? "WHERE (self.tag IS NOT NULL OR self.tagGet IS NOT NULL) " : "")
.append(withTagsOnly ? "WHERE (self.tag IS NOT NULL OR self.tagGet IS NOT NULL OR self.tagCount IS NOT NULL) " : "")
.append(" ORDER BY COALESCE(self.priority, 0) DESC, self.id");

final TypedQuery<MetaMenu> query = JPA.em().createQuery(queryString.toString(), MetaMenu.class);
Expand Down
4 changes: 4 additions & 0 deletions changelogs/unreleased/tag-count.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Update menu tags using `tag-count`
type: fix

0 comments on commit f3471e0

Please sign in to comment.