@esfaenza/es-table 11.2.22-beta27 → 11.2.22-beta30

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.
@@ -1307,8 +1307,8 @@
1307
1307
  return;
1308
1308
  var columns = this.est.viewMode ? view.columns : this.est.arrayColumns;
1309
1309
  this.est.ColumnsList.forEach(function (c) {
1310
- // Se la colonna è pinnata mi arriva col simoleon
1311
- var exCl = columns.filter(function (cc) { return cc.replace('§', '') == c.id; });
1310
+ // Se la colonna è pinnata mi arriva col simoleon, ma anche se è una composizione di più colonne
1311
+ var exCl = columns.filter(function (cc) { return (cc.startsWith('§') ? cc.substring(1) : cc) == c.id; });
1312
1312
  // Se la colonna è pinnata aggiorno l'informazione nella view
1313
1313
  if (exCl.length == 1)
1314
1314
  c.pinned = exCl[0].startsWith('§');
@@ -2132,7 +2132,8 @@
2132
2132
  else {
2133
2133
  var ret = this.est.SecondarySource ? this.est.View.items2 : this.est.TertiarySource ? this.est.View.items3 : this.est.View.items;
2134
2134
  // Setto variabile interna per specificare che questo è un elemento normale, non un gruppo o altro
2135
- ret.forEach(function (itm) { itm._item = true; });
2135
+ if (ret)
2136
+ ret.forEach(function (itm) { itm._item = true; });
2136
2137
  return ret;
2137
2138
  }
2138
2139
  };