@eqproject/eqp-dynamic-module 2.10.41 → 2.10.43

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.
@@ -5889,8 +5889,14 @@ class DbgetterComponent {
5889
5889
  keyused = key;
5890
5890
  }
5891
5891
  else {
5892
- valueToBeSet = row[this.field.DataGetter.DataGetterColumnForce.key];
5893
- keyused = this.field.DataGetter.DataGetterColumnForce.key;
5892
+ if (row.hasOwnProperty(this.field.DataGetter.DataGetterColumnForce.key)) {
5893
+ valueToBeSet = row[this.field.DataGetter.DataGetterColumnForce.key];
5894
+ keyused = this.field.DataGetter.DataGetterColumnForce.key;
5895
+ }
5896
+ else if (row.hasOwnProperty(key)) {
5897
+ valueToBeSet = row[key];
5898
+ keyused = key;
5899
+ }
5894
5900
  }
5895
5901
  if (valueToBeSet == null) {
5896
5902
  valueToBeSet = "";
@@ -5912,6 +5918,9 @@ class DbgetterComponent {
5912
5918
  }
5913
5919
  else {
5914
5920
  GlobalService.debugLog("ho multiselect");
5921
+ if (this.selectedElements != null && !Array.isArray(this.selectedElements)) {
5922
+ this.selectedElements = [this.selectedElements];
5923
+ }
5915
5924
  if (this.selectedElements == null) {
5916
5925
  this.selectedElements = new Array();
5917
5926
  }
@@ -6183,6 +6192,9 @@ class ListValueDbgTemplateComponent {
6183
6192
  }
6184
6193
  ngOnInit() {
6185
6194
  if (this.record[this.field.Name] != null) {
6195
+ if (!Array.isArray(this.record[this.field.Name])) {
6196
+ this.record[this.field.Name] = [this.record[this.field.Name]];
6197
+ }
6186
6198
  this.record[this.field.Name].forEach(element => {
6187
6199
  var pushElement = new ListValueElement();
6188
6200
  pushElement.ID = element.ID;