mmhglobal-dynamicform 2.28.5 → 2.28.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5376,14 +5376,11 @@ class ZbuttonsComponent extends ButtonFieldBase {
5376
5376
  });
5377
5377
  }
5378
5378
  updateEventId(button) {
5379
+ const name = button.Name ?? button.name;
5379
5380
  const updateButtonEventId = (buttons) => {
5380
5381
  buttons.forEach(item => {
5381
- if (item.name === button.Name) {
5382
- const eventId = ZComponentHelper.generateTimeStampId();
5383
- const attributes = JSON.parse(item.fieldAttribute.Attributes);
5384
- item.fieldAttribute.eventId = eventId;
5385
- attributes.eventId = eventId;
5386
- item.fieldAttribute.Attributes = JSON.stringify(attributes);
5382
+ if (item.name === name) {
5383
+ item.eventId = ZComponentHelper.generateTimeStampId();
5387
5384
  }
5388
5385
  });
5389
5386
  };
@@ -7007,9 +7004,10 @@ class ZworkflowbuttonsComponent extends ButtonFieldBase {
7007
7004
  }
7008
7005
  }
7009
7006
  updateEventId(button) {
7007
+ const name = button.Name ?? button.name;
7010
7008
  const updateButtonEventId = (buttons) => {
7011
7009
  buttons.forEach(item => {
7012
- if (item.name === button.Name) {
7010
+ if (item.name === name) {
7013
7011
  const eventId = ZComponentHelper.generateTimeStampId();
7014
7012
  const attributes = JSON.parse(item.fieldAttribute.Attributes);
7015
7013
  item.fieldAttribute.eventId = eventId;