IDEMPIERE-5241 : Bugfixes for charts - Fix Id not unique in space (#1317)

This commit is contained in:
Nicolas Micoud 2022-05-06 11:58:57 +02:00 committed by GitHub
parent 7d5f7f678c
commit 4563023ff7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ import org.zkoss.zul.Imagemap;
area.setCoords(entity.getShapeCoords()); area.setCoords(entity.getShapeCoords());
area.setShape(entity.getShapeType()); area.setShape(entity.getShapeType());
area.setTooltiptext(entity.getToolTipText()); area.setTooltiptext(entity.getToolTipText());
area.setId(count+"_WG__" + seriesName + "__" + key); area.setId(count+"_WG__" + seriesName + "__" + key + "__" + System.currentTimeMillis());
count++; count++;
} }
@ -128,7 +128,7 @@ import org.zkoss.zul.Imagemap;
String areaId = me.getArea(); String areaId = me.getArea();
if (areaId != null) { if (areaId != null) {
String[] strs = areaId.split("__"); String[] strs = areaId.split("__");
if (strs.length == 3) if (strs.length == 4)
{ {
chartMouseClicked(strs[2], strs[1]); chartMouseClicked(strs[2], strs[1]);
} }