Skip to content

Commit

Permalink
Use forceAsItem-option from sitemaps (#1256)
Browse files Browse the repository at this point in the history
Depends-on: openhab/openhab-core#2657

Signed-off-by: Flole <flole@flole.de>
  • Loading branch information
Flole998 authored Apr 19, 2022
1 parent ea6726d commit 76c4dc9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,12 @@ public EList<Widget> renderWidget(Widget w, StringBuilder sb, String sitemap) th

try {
String itemParam = null;
boolean forceAsItem = false;
if (chart.getForceAsItem() != null) {
forceAsItem = chart.getForceAsItem();
}
Item item = itemUIRegistry.getItem(chart.getItem());
if (item instanceof GroupItem) {
if (item instanceof GroupItem && !forceAsItem) {
itemParam = "groups=" + chart.getItem();
} else {
itemParam = "items=" + chart.getItem();
Expand Down

0 comments on commit 76c4dc9

Please sign in to comment.