@eqproject/eqp-dynamic-module 2.6.22 → 2.6.24

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.
@@ -8262,7 +8262,7 @@ class EqpDynamicModuleComponent {
8262
8262
  const temp = UtilityHelperService.EvaluateFieldFormula(field.Formula, record, null);
8263
8263
  output = GlobalService.stringToValuePairs(temp);
8264
8264
  }
8265
- else if (field.ValuePairs != null && field.ValuePairs.lenght > 0) {
8265
+ else if (field.ValuePairs != null) {
8266
8266
  output = field.ValuePairs;
8267
8267
  }
8268
8268
  else if (field.ValueString != null && field.ValueString != "") {
@@ -10984,7 +10984,11 @@ class EqpDynamicModuleConfiguratorComponent {
10984
10984
  if (this.importedModule != null) {
10985
10985
  if (confirm("stai per sovrascrivere il modulo")) {
10986
10986
  // chiamo il parse così da non creare un referenceBinding
10987
- this.setFormAndConfigure(JSON.parse(this.importedModule));
10987
+ var importedForm = JSON.parse(this.importedModule);
10988
+ importedForm.ID = "";
10989
+ importedForm.Name = importedForm.Name + " (Importato)";
10990
+ this.setName(importedForm.Name);
10991
+ this.setFormAndConfigure(importedForm);
10988
10992
  this.closeImport();
10989
10993
  }
10990
10994
  }