@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.
@@ -8237,7 +8237,7 @@ class EqpDynamicModuleComponent {
8237
8237
  const temp = UtilityHelperService.EvaluateFieldFormula(field.Formula, record, null);
8238
8238
  output = GlobalService.stringToValuePairs(temp);
8239
8239
  }
8240
- else if (field.ValuePairs != null && field.ValuePairs.lenght > 0) {
8240
+ else if (field.ValuePairs != null) {
8241
8241
  output = field.ValuePairs;
8242
8242
  }
8243
8243
  else if (field.ValueString != null && field.ValueString != "") {
@@ -10953,7 +10953,11 @@ class EqpDynamicModuleConfiguratorComponent {
10953
10953
  if (this.importedModule != null) {
10954
10954
  if (confirm("stai per sovrascrivere il modulo")) {
10955
10955
  // chiamo il parse così da non creare un referenceBinding
10956
- this.setFormAndConfigure(JSON.parse(this.importedModule));
10956
+ var importedForm = JSON.parse(this.importedModule);
10957
+ importedForm.ID = "";
10958
+ importedForm.Name = importedForm.Name + " (Importato)";
10959
+ this.setName(importedForm.Name);
10960
+ this.setFormAndConfigure(importedForm);
10957
10961
  this.closeImport();
10958
10962
  }
10959
10963
  }