@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.
@@ -5797,7 +5797,7 @@
5797
5797
  include_null_value = true;
5798
5798
  }
5799
5799
  var num_all = -1;
5800
- var countryFilterComponent = this.gridOptions.api.getFilterInstance('key');
5800
+ var countryFilterComponent = this.gridOptions.api.getFilterInstance(key);
5801
5801
  console.log('countryFilterComponent ', countryFilterComponent);
5802
5802
  if (countryFilterComponent != null) {
5803
5803
  var model = countryFilterComponent.getModel();
@@ -5806,15 +5806,17 @@
5806
5806
  num_all = model.values.length;
5807
5807
  }
5808
5808
  console.log('obj_filtro.values.length!=num_all ', obj_filtro.values.length, num_all);
5809
- if (sq != "" && obj_filtro.values.length != num_all) {
5810
- b_filter = true;
5811
- if (add_end)
5812
- filter_v = filter_v + " and ";
5813
- if (!include_null_value)
5814
- filter_v = filter_v + key + " in (" + sq + ")";
5815
- else
5816
- filter_v =
5817
- filter_v + "(" + key + " in (" + sq + ") or " + key + " is null)";
5809
+ if (sq != "") {
5810
+ if (obj_filtro.values.length != num_all) {
5811
+ b_filter = true;
5812
+ if (add_end)
5813
+ filter_v = filter_v + " and ";
5814
+ if (!include_null_value)
5815
+ filter_v = filter_v + key + " in (" + sq + ")";
5816
+ else
5817
+ filter_v =
5818
+ filter_v + "(" + key + " in (" + sq + ") or " + key + " is null)";
5819
+ }
5818
5820
  }
5819
5821
  else {
5820
5822
  b_filter = true;