@eqproject/eqp-dynamic-module 2.6.27 → 2.6.28

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.
@@ -10977,6 +10977,7 @@ class EqpDynamicModuleConfiguratorComponent {
10977
10977
  var importedForm = JSON.parse(this.importedModule);
10978
10978
  importedForm.ID = "";
10979
10979
  importedForm.Name = importedForm.Name + " (Importato)";
10980
+ importedForm = this.setImportedForm(importedForm);
10980
10981
  this.setFormAndConfigure(importedForm);
10981
10982
  this.setName(importedForm.Name);
10982
10983
  this.closeImport();
@@ -10991,6 +10992,16 @@ class EqpDynamicModuleConfiguratorComponent {
10991
10992
  console.error(error);
10992
10993
  };
10993
10994
  }
10995
+ setImportedForm(form) {
10996
+ form.Fields.forEach((field) => {
10997
+ if (field.FieldType == FieldTypeEnum["Elenco immagini"]) {
10998
+ field.AttachmentList.forEach((attachment) => {
10999
+ attachment.ID = 0;
11000
+ });
11001
+ }
11002
+ });
11003
+ return form;
11004
+ }
10994
11005
  importModule() {
10995
11006
  this.dialogImportRef = this.dialog.open(this.dialogImport, {
10996
11007
  disableClose: true,