mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
[sitemap] Fix parsing of button (buttongrid element built with MainUI) (#3980)
Fix openhab/openhab-webui#2242 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
+1
-1
@@ -376,7 +376,7 @@ public class UIComponentSitemapProvider implements SitemapProvider, RegistryChan
|
||||
if (sourceButtons instanceof Collection<?>) {
|
||||
for (Object sourceButton : (Collection<?>) sourceButtons) {
|
||||
if (sourceButton instanceof String) {
|
||||
String[] splitted1 = sourceButton.toString().split(":");
|
||||
String[] splitted1 = sourceButton.toString().split(":", 3);
|
||||
int row = Integer.parseInt(splitted1[0].trim());
|
||||
int column = Integer.parseInt(splitted1[1].trim());
|
||||
String[] splitted2 = splitted1[2].trim().split("=");
|
||||
|
||||
Reference in New Issue
Block a user