@fluxhub/fluxhub-lib 1.0.400 → 1.0.402

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.
@@ -6711,8 +6711,6 @@
6711
6711
  // console.log( params.filterModel[key]);
6712
6712
  /** @type {?} */
6713
6713
  var obj_filtro_test = params.filterModel[key];
6714
- if (p.filter != '')
6715
- p.filter += " and ";
6716
6714
  if (obj_filtro_test.operator == null) {
6717
6715
  if (p.filter == '')
6718
6716
  p.filter += _this.calcola_filtro(params.filterModel[key], '', key, false);
@@ -6720,6 +6718,8 @@
6720
6718
  p.filter += _this.calcola_filtro(params.filterModel[key], '', key, true);
6721
6719
  }
6722
6720
  else {
6721
+ if (p.filter != '')
6722
+ p.filter += " and ";
6723
6723
  p.filter += " (";
6724
6724
  p.filter += _this.calcola_filtro(params.filterModel[key].condition1, '', key, false);
6725
6725
  console.log('After chiamata1: ', p.filter);
@@ -7252,7 +7252,7 @@
7252
7252
  }
7253
7253
  if (obj_filtro.dateTo != null || obj_filtro.dateFrom != null) {
7254
7254
  b_filter = true;
7255
- if (filter_v != "")
7255
+ if (add_end)
7256
7256
  filter_v = filter_v + ' and ';
7257
7257
  filter_v = filter_v + ' (';
7258
7258
  if (obj_filtro.dateFrom != null && obj_filtro.dateTo != null)