@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.
@@ -11008,6 +11008,7 @@ class EqpDynamicModuleConfiguratorComponent {
11008
11008
  var importedForm = JSON.parse(this.importedModule);
11009
11009
  importedForm.ID = "";
11010
11010
  importedForm.Name = importedForm.Name + " (Importato)";
11011
+ importedForm = this.setImportedForm(importedForm);
11011
11012
  this.setFormAndConfigure(importedForm);
11012
11013
  this.setName(importedForm.Name);
11013
11014
  this.closeImport();
@@ -11022,6 +11023,16 @@ class EqpDynamicModuleConfiguratorComponent {
11022
11023
  console.error(error);
11023
11024
  };
11024
11025
  }
11026
+ setImportedForm(form) {
11027
+ form.Fields.forEach((field) => {
11028
+ if (field.FieldType == FieldTypeEnum["Elenco immagini"]) {
11029
+ field.AttachmentList.forEach((attachment) => {
11030
+ attachment.ID = 0;
11031
+ });
11032
+ }
11033
+ });
11034
+ return form;
11035
+ }
11025
11036
  importModule() {
11026
11037
  this.dialogImportRef = this.dialog.open(this.dialogImport, {
11027
11038
  disableClose: true,