@fluxhub/fluxhub-lib 11.0.38 → 11.0.39

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.
@@ -6487,15 +6487,6 @@ class FHGridComponent {
6487
6487
  if (params.filterModel != null) {
6488
6488
  // console.log('Filtri');
6489
6489
  for (let key in params.filterModel) {
6490
- if (!b_init) {
6491
- if (this.include_always != '') {
6492
- p.filter = p.filter + " (" + this.include_always + ' or ';
6493
- }
6494
- }
6495
- b_init = true;
6496
- // console.log(key);
6497
- // if (p.hasOwnProperty(key)) {
6498
- // console.log( params.filterModel[key]);
6499
6490
  let obj_filtro_test = params.filterModel[key];
6500
6491
  console.log(params.filterModel[key], key);
6501
6492
  if (obj_filtro_test.operator == null) {
@@ -6505,8 +6496,16 @@ class FHGridComponent {
6505
6496
  p.filter += this.calcola_filtro(params.filterModel[key], "", key, true);
6506
6497
  }
6507
6498
  else {
6508
- if (p.filter != "")
6499
+ if (!b_init) {
6500
+ if (this.include_always != '') {
6501
+ p.filter = p.filter + " (" + this.include_always + ' or ';
6502
+ }
6503
+ else if (p.filter != "")
6504
+ p.filter += " and ";
6505
+ }
6506
+ else if (p.filter != "")
6509
6507
  p.filter += " and ";
6508
+ b_init = true;
6510
6509
  p.filter += " (";
6511
6510
  p.filter += this.calcola_filtro(params.filterModel[key].condition1, "", key, false);
6512
6511
  p.filter += " " + obj_filtro_test.operator + " ";