@fluxhub/fluxhub-lib 11.0.39 → 11.0.40

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.
@@ -6485,18 +6485,32 @@ class FHGridComponent {
6485
6485
  let p_fi = p.filter;
6486
6486
  let b_init = false;
6487
6487
  if (params.filterModel != null) {
6488
- // console.log('Filtri');
6488
+ console.log('Filtri ', params.filterModel);
6489
6489
  for (let key in params.filterModel) {
6490
6490
  let obj_filtro_test = params.filterModel[key];
6491
- console.log(params.filterModel[key], key);
6492
6491
  if (obj_filtro_test.operator == null) {
6493
6492
  if (p.filter == "")
6494
6493
  p.filter += this.calcola_filtro(params.filterModel[key], "", key, false);
6495
- else
6494
+ else {
6495
+ console.log("🚀 ~ file: fhgrid.ts ~ line 767 ~ FHGridComponent ~ b_init", b_init);
6496
+ if (!b_init) {
6497
+ console.log("🚀 ~ file: fhgrid.ts ~ line 770 ~ FHGridComponent ~ this.include_always", this.include_always);
6498
+ if (this.include_always != '') {
6499
+ p.filter = p.filter + " (" + this.include_always + ' or ';
6500
+ }
6501
+ else if (p.filter != "")
6502
+ p.filter += " and ";
6503
+ }
6504
+ else if (p.filter != "")
6505
+ p.filter += " and ";
6506
+ b_init = true;
6496
6507
  p.filter += this.calcola_filtro(params.filterModel[key], "", key, true);
6508
+ }
6497
6509
  }
6498
6510
  else {
6511
+ console.log("🚀 ~ file: fhgrid.ts ~ line 767 ~ FHGridComponent ~ b_init", b_init);
6499
6512
  if (!b_init) {
6513
+ console.log("🚀 ~ file: fhgrid.ts ~ line 770 ~ FHGridComponent ~ this.include_always", this.include_always);
6500
6514
  if (this.include_always != '') {
6501
6515
  p.filter = p.filter + " (" + this.include_always + ' or ';
6502
6516
  }