IDEMPIERE-4908 Not unique in the ID space of ... breadcrumb with same name tabs (FHEG-8847) (#822)

This commit is contained in:
Carlos Ruiz 2021-08-11 13:37:44 +02:00 committed by GitHub
parent 29343610ca
commit 5ede13acee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ public class BreadCrumb extends Div implements EventListener<Event> {
if (clickable) { if (clickable) {
BreadCrumbLink a = new BreadCrumbLink(); BreadCrumbLink a = new BreadCrumbLink();
a.setLabel(label); a.setLabel(label);
a.setId("breadcrumb-"+label); a.setId("breadcrumb-"+id+"-"+label);
a.setPathId(id); a.setPathId(id);
a.addEventListener(Events.ON_CLICK, this); a.addEventListener(Events.ON_CLICK, this);
if (layout.getChildren().size() > 0) { if (layout.getChildren().size() > 0) {
@ -167,7 +167,7 @@ public class BreadCrumb extends Div implements EventListener<Event> {
layout.appendChild(a); layout.appendChild(a);
} else { } else {
Label pathLabel = new Label(); Label pathLabel = new Label();
pathLabel.setId("breadcrumb-"+label); pathLabel.setId("breadcrumb-"+id+"-"+label);
pathLabel.setValue(label); pathLabel.setValue(label);
if (layout.getChildren().size() > 0) { if (layout.getChildren().size() > 0) {
Label symbol = new Label(); Label symbol = new Label();