@fluxhub/fluxhub-lib 10.0.142 → 10.0.144

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.
@@ -8361,7 +8361,7 @@ class FHGridComponent {
8361
8361
  include_null_value = true;
8362
8362
  }
8363
8363
  let num_all = -1;
8364
- let countryFilterComponent = this.gridOptions.api.getFilterInstance('key');
8364
+ let countryFilterComponent = this.gridOptions.api.getFilterInstance(key);
8365
8365
  console.log('countryFilterComponent ', countryFilterComponent);
8366
8366
  if (countryFilterComponent != null) {
8367
8367
  let model = countryFilterComponent.getModel();
@@ -8370,15 +8370,17 @@ class FHGridComponent {
8370
8370
  num_all = model.values.length;
8371
8371
  }
8372
8372
  console.log('obj_filtro.values.length!=num_all ', obj_filtro.values.length, num_all);
8373
- if (sq != "" && obj_filtro.values.length != num_all) {
8374
- b_filter = true;
8375
- if (add_end)
8376
- filter_v = filter_v + " and ";
8377
- if (!include_null_value)
8378
- filter_v = filter_v + key + " in (" + sq + ")";
8379
- else
8380
- filter_v =
8381
- filter_v + "(" + key + " in (" + sq + ") or " + key + " is null)";
8373
+ if (sq != "") {
8374
+ if (obj_filtro.values.length != num_all) {
8375
+ b_filter = true;
8376
+ if (add_end)
8377
+ filter_v = filter_v + " and ";
8378
+ if (!include_null_value)
8379
+ filter_v = filter_v + key + " in (" + sq + ")";
8380
+ else
8381
+ filter_v =
8382
+ filter_v + "(" + key + " in (" + sq + ") or " + key + " is null)";
8383
+ }
8382
8384
  }
8383
8385
  else {
8384
8386
  b_filter = true;