@fluxhub/fluxhub-lib 10.0.711 → 10.0.713

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.
@@ -8637,6 +8637,8 @@
8637
8637
  this.user_sel = [];
8638
8638
  };
8639
8639
  fh_win_user_picker.prototype.filtra = function () {
8640
+ if (this.fltr_user == null)
8641
+ this.fltr_user = '';
8640
8642
  console.log('filtra() ' + this.fltr_user.toUpperCase());
8641
8643
  this.users_list_sel = new Array();
8642
8644
  for (var i = 0; i < this.users_list.length; i++)
@@ -8652,20 +8654,20 @@
8652
8654
  (this.users_list[i].nc
8653
8655
  .toUpperCase()
8654
8656
  .indexOf(this.fltr_user.toUpperCase()) != -1 ||
8655
- this.fltr_user == "")) {
8656
- if (this.user_sel == null)
8657
+ this.fltr_user == '')) {
8658
+ /* if (this.user_sel == null)
8659
+ this.users_list_sel.push(this.users_list[i]);
8660
+ else {*/
8661
+ var b_found = false;
8662
+ for (var y = 0; y < this.user_sel.length; y++)
8663
+ if (this.user_sel[y].username == this.users_list[i].username &&
8664
+ this.user_sel[y].canale == this.users_list[i].canale) {
8665
+ b_found = true;
8666
+ break;
8667
+ }
8668
+ if (!b_found)
8657
8669
  this.users_list_sel.push(this.users_list[i]);
8658
- else {
8659
- var b_found = false;
8660
- for (var y = 0; y < this.user_sel.length; y++)
8661
- if (this.user_sel[y].username == this.users_list[i].username &&
8662
- this.user_sel[y].canale == this.users_list[i].canale) {
8663
- b_found = true;
8664
- break;
8665
- }
8666
- if (!b_found)
8667
- this.users_list_sel.push(this.users_list[i]);
8668
- }
8670
+ // }
8669
8671
  }
8670
8672
  }
8671
8673
  };
@@ -22204,6 +22206,13 @@
22204
22206
  }
22205
22207
  });
22206
22208
  console.log('arrAutori dopo ', arrAutori);
22209
+ var arrAutori_temp = [];
22210
+ for (var i = 0; i < arrAutori.length; i++) {
22211
+ if ((_this.get_grid().sRow.canale == null || _this.get_grid().sRow.canale == '')
22212
+ ||
22213
+ _this.get_grid().sRow.canale == arrAutori[i].context)
22214
+ arrAutori_temp.push(arrAutori[i]);
22215
+ }
22207
22216
  var dialogRef_3 = _this.dialog.open(win_riassegna_select_user_v2, {
22208
22217
  disableClose: true,
22209
22218
  width: "850px",